prune: honor --expire=never
commitcbf731ed4ec511f2c32598e03d7865f35881fea2
authorAdam Simpkins <simpkins@facebook.com>
Sat, 27 Feb 2010 03:50:02 +0000 (26 19:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Feb 2010 18:28:05 +0000 (28 10:28 -0800)
treedc54c7b061bdb678c045a74d40255417bdfa7393
parent64da6e20de1f2246e2d8d9d85e53ca3cbf393212
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>
builtin-prune.c
t/t5304-prune.sh