git.el: Run git-gc --auto after commits.
authorAlexandre Julliard <julliard@winehq.org>
Sun, 28 Oct 2007 10:07:14 +0000 (11:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Oct 2007 21:08:28 +0000 (14:08 -0700)
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el

index e5ee8ce58b1d8c729d79caa60885a7c4c4cf2355..e147da0596a880e864fb707192b5bc856cb3daba 100644 (file)
@@ -796,6 +796,7 @@ Return the list of files that haven't been handled."
                             (with-current-buffer buffer (erase-buffer))
                             (dolist (info files) (git-set-fileinfo-state info 'uptodate))
                             (git-call-process-env nil nil "rerere")
+                            (git-call-process-env nil nil "gc" "--auto")
                             (git-refresh-files)
                             (git-refresh-ewoc-hf git-status)
                             (message "Committed %s." commit)