author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 14 Feb 2009 22:10:10 +0000 (23:10 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Feb 2009 05:14:07 +0000 (21:14 -0800) | ||
commit | 58e9d9d472ff4dbc6cfbf7459878778c739395eb | |
tree | 6a09b2564916644ee5f0a18cf70d51936fe6802b | tree | snapshot |
parent | e9cc02f0e41fd5d2f51e3c3f2b4f8cfa9e434432 | commit | diff |
gc: make --prune useful again by accepting an optional parameter
With this patch, "git gc --no-prune" will not prune any loose (and
dangling) object, and "git gc --prune=5.minutes.ago" will prune
all loose objects older than 5 minutes.
This patch benefitted from suggestions by Thomas Rast and Jan Krï¿œger.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
With this patch, "git gc --no-prune" will not prune any loose (and
dangling) object, and "git gc --prune=5.minutes.ago" will prune
all loose objects older than 5 minutes.
This patch benefitted from suggestions by Thomas Rast and Jan Krï¿œger.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-gc.txt | diff | blob | history | |
builtin-gc.c | diff | blob | history | |
t/t5304-prune.sh | diff | blob | history |