summaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2007-10-28 10:07:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-10-28 21:08:28 (GMT)
commitd53a35020d380c199b010c9884ab15995f8e982b (patch)
treedf3f1d86fac6af15aec01c228937663cb56d66a2 /contrib/emacs
parent2f6e86a86fb9830c0c3205a317f6205f156cfacc (diff)
downloadgit-d53a35020d380c199b010c9884ab15995f8e982b.zip
git-d53a35020d380c199b010c9884ab15995f8e982b.tar.gz
git-d53a35020d380c199b010c9884ab15995f8e982b.tar.bz2
git.el: Run git-gc --auto after commits.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index e5ee8ce..e147da0 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -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)