Changes since the first patch:
- wait time goes down to 1 hour, not too long, but also avoid flooding
- avoid 1 fork for calling "gc --auto" if there's no actual housekeeping
- commit learns commit.autogc config key. Scripts shoud make use of this
Nguyễn Thái Ngọc Duy (5):
Add convenient function to do automatic garbage collection
index-pack: perform automatic gc, share receive.gc config with
receive-pack
commit: reinstate "gc --auto"
gc: add --dry-run
Update "gc" behavior in commit, merge, am and rebase Documentation/config.txt | 11 +++++++--
Documentation/git-gc.txt | 7 +++++-
builtin/commit.c | 2 +
builtin/gc.c | 46 +++++++++++++++++++++++++++++++++++++++++++-
builtin/gc.h | 9 ++++++++
builtin/index-pack.c | 6 +++-
builtin/merge.c | 8 +-----
builtin/receive-pack.c | 14 +-----------
git-am.sh | 2 +-
git-rebase--interactive.sh | 2 +-
10 files changed, 80 insertions(+), 27 deletions(-)
create mode 100644 builtin/gc.h