author | Adam Simpkins <simpkins@facebook.com> | |
Sat, 27 Feb 2010 03:50:02 +0000 (19:50 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 28 Feb 2010 18:28:05 +0000 (10:28 -0800) | ||
commit | cbf731ed4ec511f2c32598e03d7865f35881fea2 | |
tree | dc54c7b061bdb678c045a74d40255417bdfa7393 | tree | snapshot |
parent | 64da6e20de1f2246e2d8d9d85e53ca3cbf393212 | commit | diff |
prune: honor --expire=never
Previously, prune treated an expiration time of 0 to mean that no
expire argument was supplied, and everything should be pruned. As a
result, "prune --expire=never" would prune all unreachable objects,
regardless of their timestamp.
prune can be called with --expire=never automatically by gc, when the
gc.pruneExpire configuration is set to "never".
Signed-off-by: Adam Simpkins <simpkins@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previously, prune treated an expiration time of 0 to mean that no
expire argument was supplied, and everything should be pruned. As a
result, "prune --expire=never" would prune all unreachable objects,
regardless of their timestamp.
prune can be called with --expire=never automatically by gc, when the
gc.pruneExpire configuration is set to "never".
Signed-off-by: Adam Simpkins <simpkins@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-prune.c | diff | blob | history | |
t/t5304-prune.sh | diff | blob | history |