diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-26 22:55:08 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-26 22:55:08 -0700 |
commit | 96352ef9b4dfeb38ec796e7eab010edfe8f978ba (patch) | |
tree | 23ef65fd24b4fcfff8610be002f566ded95d9eee /config.h | |
parent | 030faf2fa55d938db006125d4f3db41115c31d37 (diff) | |
parent | 6e96cb5286105bbcf19d5c47e45334ef9a75d09d (diff) | |
download | git-96352ef9b4dfeb38ec796e7eab010edfe8f978ba.tar.gz |
Merge branch 'jc/cutoff-config'
"[gc] rerereResolved = 5.days" used to be invalid, as the variable
is defined to take an integer counting the number of days. It now
is allowed.
* jc/cutoff-config:
rerere: allow approxidate in gc.rerereResolved/gc.rerereUnresolved
rerere: represent time duration in timestamp_t internally
t4200: parameterize "rerere gc" custom expiry test
t4200: gather "rerere gc" together
t4200: make "rerere gc" test more robust
t4200: give us a clean slate after "rerere gc" tests
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -215,6 +215,9 @@ extern int git_config_get_max_percent_split_change(void); /* This dies if the configured or default date is in the future */ extern int git_config_get_expiry(const char *key, const char **output); +/* parse either "this many days" integer, or "5.days.ago" approxidate */ +extern int git_config_get_expiry_in_days(const char *key, timestamp_t *, timestamp_t now); + struct key_value_info { const char *filename; int linenr; |