Added push/pull menus.

This commit is contained in:
Phil Jackson 2010-09-01 22:28:33 +01:00
parent 42fc3dac9c
commit c02fffb97e

View file

@ -30,10 +30,10 @@
(define-key map (kbd "R") 'magit-rebase-step)
(define-key map (kbd "t") (lambda () (interactive) (magit-key-mode 'tagging)))
(define-key map (kbd "r") (lambda () (interactive) (magit-key-mode 'rewriting)))
(define-key map (kbd "P") 'magit-push)
(define-key map (kbd "P") (lambda () (interactive) (magit-key-mode 'pushing)))
(define-key map (kbd "f") 'magit-remote-update)
(define-key map (kbd "b") (lambda () (interactive) (magit-key-mode 'branching)))
(define-key map (kbd "F") 'magit-pull)
(define-key map (kbd "F") (lambda () (interactive) (magit-key-mode 'pulling)))
(define-key map (kbd "c") 'magit-log-edit)
(define-key map (kbd "l") (lambda () (interactive) (magit-key-mode 'logging)))
(define-key map (kbd "$") 'magit-display-process)
@ -168,6 +168,16 @@
("=a" "Author" "--author" read-from-minibuffer)
("=g" "Grep" "--grep" read-from-minibuffer)))
(pushing
(actions
("p" "Push" magit-push)))
(pulling
(actions
("p" "Pull" magit-pull))
(switches
("-r" "Rebase" "--rebase")))
(branching
(actions
("V" "Branch manager" magit-show-branches)