summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-10-18 00:30:13 -0400
committerKyle Meyer <kyle@kyleam.com>2014-10-18 00:30:13 -0400
commit9c85cef3a2dc5ebf858b6813efd81a9c31f3be47 (patch)
tree494c9beb116db613f250492d482c1801800c908f /lisp
parent6fcadca62088ae73a8ae41731c52dc59f214e6dc (diff)
downloademacs.d-9c85cef3a2dc5ebf858b6813efd81a9c31f3be47.tar.gz
Add command magit-commit-extend-all
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 7b749c2..3c79a2a 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -42,6 +42,13 @@ This is useful for commit IDs in files and log messages."
'(lambda () (magit-show-commit it))))
(projectile-switch-project))))
+(defun km/magit-commit-extend-all ()
+ "Run `magit-commit-extend' with '--all' flag.
+This can easily be done from the popup menu but is put into a
+function for calling from outside Magit buffers."
+ (interactive)
+ (magit-commit-extend '("--all")))
+
(defun km/magit-stage-file-intent (file)
"Stage FILE but not its content.
With a prefix argument or when there is no file at point ask for
@@ -172,7 +179,7 @@ START-POINT set to the current branch.
(global-set-key (kbd "C-c g") 'km/git-map)
(define-key km/git-map "c" 'km/magit-show-commit-under-point)
(define-key km/git-map "C" 'km/magit-show-project-commit-under-point)
-
+(define-key km/git-map "e" 'km/magit-commit-extend-all)
(define-key km/git-map "u" 'km/magit-auto-commit)
(provide 'init-git)