Skip to content

"git gc --auto" update

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Add convenient function to do automatic garbage collectionbuiltin/gc.c builtin/gc.h builtin/merge.c +1 more+37 -202 replies
2/5index-pack: perform automatic gc, share receive.gc config with receive-packDocumentation/config.txt builtin/index-pack.c+8 -50 replies
3/5commit: reinstate "gc --auto"Documentation/config.txt builtin/commit.c+6 -00 replies
4/5gc: add --dry-runDocumentation/git-gc.txt builtin/gc.c+25 -10 replies
5/5Update "gc" behavior in commit, merge, am and rebasebuiltin/commit.c builtin/gc.c builtin/gc.h +3 more+8 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] "git gc --auto" update

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
Signature · 1 line
1.7.8.36.g69ee2