summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-01-18 19:31:42 -0500
committerKyle Meyer <kyle@kyleam.com>2014-01-18 19:31:42 -0500
commita3792a4d84e75a56228e34385fb05eca12bbe01e (patch)
tree15e3ed8d603d95f49b1b8132c9a013da2b452398
parentc2797b2f2f9af2111e911c37fd7779ab347f4baf (diff)
downloademacs.d-a3792a4d84e75a56228e34385fb05eca12bbe01e.tar.gz
Update km/magit-auto-commit
`magit-with-refresh' no longer defined.
-rw-r--r--init/km-git.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/km-git.el b/init/km-git.el
index a80feed..5285f47 100644
--- a/init/km-git.el
+++ b/init/km-git.el
@@ -5,10 +5,10 @@
(require 'magit)
(defun km/magit-auto-commit ()
+ "Commit all changes with \"auto\" commit message.
+Useful for non-source code repos (e.g., Org mode note files)."
(interactive)
- (save-window-excursion
- (magit-with-refresh
- (shell-command "git --no-pager commit --all --message=auto"))))
+ (magit-run-git "commit" "--all" "--message=auto"))
(define-key magit-status-mode-map (kbd "C-c C-u") 'km/magit-auto-commit)