Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: return control to caller, for housekeeping
[gitweb.git]
/
git-rebase.sh
diff --git
a/git-rebase.sh
b/git-rebase.sh
index 2c692c33e95c4f75a5524a76a8136841cb2e4a57..f8b533d18352c86b16b4507870517b8fe57b26ee 100755
(executable)
--- a/
git-rebase.sh
+++ b/
git-rebase.sh
@@
-150,6
+150,13
@@
run_specific_rebase () {
autosquash=
fi
. git-rebase--$type
+ ret=$?
+ if test $ret -eq 0
+ then
+ git gc --auto &&
+ rm -rf "$state_dir"
+ fi
+ exit $ret
}
run_pre_rebase_hook () {