git.el: Run git-rerere on commits if the rr-cache directory exists.
PATCH 1/4 git.el: Run git-rerere on commits if the rr-cache directory exists.
Signed-off-by Alexandre Julliard <[email protected]>
--- contrib/emacs/git.el | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
contrib/emacs/git.el +2 -0
@@ -584,6 +584,8 @@ (defun git-do-commit () (condition-case nil (delete-file ".git/MERGE_HEAD") (error nil)) (with-current-buffer buffer (erase-buffer)) (git-set-files-state files 'uptodate) + (when (file-directory-p ".git/rr-cache") + (git-run-command nil nil "rerere")) (git-refresh-files) (git-refresh-ewoc-hf git-status) (message "Committed %s." commit))
Signature · 5 lines
1.4.2.rc1.ge7a0 -- Alexandre Julliard [email protected]