Skip to contentSkip to conversation

git.el: Run git-rerere on commits if the rr-cache directory exists.

PATCH In review Alexandre Julliard 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 git.el: Run git-rerere on commits if the rr-cache directory exists.

---
 contrib/emacs/git.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
contrib/emacs/git.el +2 -0
index 34c9950..7371d4b 100644
@@ -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]