diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-15 00:05:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-15 00:05:11 -0800 |
commit | 43e35f6bc14c6e00148a01700e3df191aa99c9f7 (patch) | |
tree | d1f5a26891a6f990833bc096f04dc1157aabde48 /Documentation | |
parent | b43174ebf12299ba3da3007c1e759613af153f6c (diff) | |
parent | 58e9d9d472ff4dbc6cfbf7459878778c739395eb (diff) | |
download | git-43e35f6bc14c6e00148a01700e3df191aa99c9f7.tar.gz |
Merge branch 'js/gc-prune'
* js/gc-prune:
gc: make --prune useful again by accepting an optional parameter
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-gc.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index 7086eea74a..b292e9843a 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -8,7 +8,7 @@ git-gc - Cleanup unnecessary files and optimize the local repository SYNOPSIS -------- -'git gc' [--aggressive] [--auto] [--quiet] +'git gc' [--aggressive] [--auto] [--quiet] [--prune=<date> | --no-prune] DESCRIPTION ----------- @@ -59,6 +59,14 @@ are consolidated into a single pack by using the `-A` option of 'git-repack'. Setting `gc.autopacklimit` to 0 disables automatic consolidation of packs. +--prune=<date>:: + Prune loose objects older than date (default is 2 weeks ago, + overrideable by the config variable `gc.pruneExpire`). This + option is on by default. + +--no-prune:: + Do not prune any loose objects. + --quiet:: Suppress all progress reports. |