[PATCH] Add commands that git-gc runs underneath
- From
Jari Aalto <jari.aalto@cante.net>
- Date
- Aug 30, 2007, 09:35 UTC
- Message-ID
- <lkbtwek0.fsf@cante.net>
git-gc is a higher level utility to "do the right thing". However there are many other lower level utilities for the house keeping and it is not clear what git-gc actually does. Adding the actual lower level command and their parameters explain "what's going on".x
Signed-off-by: Jari Aalto <jari.aalto@cante.net> --- Documentation/git-gc.txt | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index c7742ca..c2315bf 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -21,6 +21,24 @@ Users are encouraged to run this task on a regular basis within each repository to maintain good disk space utilization and good operating performance. +`git-gc` is a front-end to lower level house keeping commands and +effectively runs these: + +-------------------------------- + # for non-bare repositories only + git pack-refs --all --prune + + git reflog expire --all + + # with added --window -f parameters if --aggressive was specified + git repack -a -d -l + + # if --prune was specified + git prune + + git rerere gc +-------------------------------- + OPTIONS -------
-- 1.5.3.rc5 -- Welcome to FOSS revolution: we fix and modify until it shines