summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-25 18:13:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-25 18:42:10 (GMT)
commit27ec394a9701675762f02e9af464be2c297c6cf1 (patch)
tree80e8547957da5c45f30847b553b3af54621281b0 /builtin
parent8a09e6c5f9010ac7159ef39a03b9a36bf233eaca (diff)
downloadgit-27ec394a9701675762f02e9af464be2c297c6cf1.zip
git-27ec394a9701675762f02e9af464be2c297c6cf1.tar.gz
git-27ec394a9701675762f02e9af464be2c297c6cf1.tar.bz2
prune: introduce OPT_EXPIRY_DATE() and use it
Earlier we added support for --expire=all (or --expire=now) that considers all crufts, regardless of their age, as eligible for garbage collection by turning command argument parsers that use approxidate() to use parse_expiry_date(), but "git prune" used a built-in parse-options facility OPT_DATE() and did not benefit from the new function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/prune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/prune.c b/builtin/prune.c
index 85843d4..b90e5cc 100644
--- a/builtin/prune.c
+++ b/builtin/prune.c
@@ -132,8 +132,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
OPT__DRY_RUN(&show_only, N_("do not remove, show only")),
OPT__VERBOSE(&verbose, N_("report pruned objects")),
OPT_BOOL(0, "progress", &show_progress, N_("show progress")),
- OPT_DATE(0, "expire", &expire,
- N_("expire objects older than <time>")),
+ OPT_EXPIRY_DATE(0, "expire", &expire,
+ N_("expire objects older than <time>")),
OPT_END()
};
char *s;