Code

git.el: Run git-rerere on commits if the rr-cache directory exists.
authorAlexandre Julliard <julliard@winehq.org>
Sat, 22 Jul 2006 13:39:02 +0000 (15:39 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 24 Jul 2006 06:35:29 +0000 (23:35 -0700)
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/git.el

index 34c995046d8cd783cf165e8d2e40cb0d11f85f59..7371d4b46333e7c924f4a9ea3572be7b0e85071f 100644 (file)
@@ -584,6 +584,8 @@ and returns the process output as a string."
                             (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))