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@xxxxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html