diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/km-git.el | 6 |
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) |