From 9c85cef3a2dc5ebf858b6813efd81a9c31f3be47 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 18 Oct 2014 00:30:13 -0400 Subject: Add command magit-commit-extend-all --- lisp/init-git.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lisp') 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) -- cgit v1.2.3