diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-12-06 09:23:37 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-06 09:23:37 -0800 |
commit | 6cddb7362ca3c7312b57a4f172bca5c953a45b6c (patch) | |
tree | 62b363b31ccae02533ee81eea365cb975ab39cce /config.h | |
parent | Merge branch 'tz/branch-doc-remove-set-upstream' (diff) | |
parent | config: add --expiry-date (diff) | |
download | tgif-6cddb7362ca3c7312b57a4f172bca5c953a45b6c.tar.xz |
Merge branch 'hm/config-parse-expiry-date'
"git config --expiry-date gc.reflogexpire" can read "2.weeks" from
the configuration and report it as a timestamp, just like "--int"
would read "1k" and report 1024, to help consumption by scripts.
* hm/config-parse-expiry-date:
config: add --expiry-date
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -58,6 +58,7 @@ extern int git_config_bool_or_int(const char *, const char *, int *); extern int git_config_bool(const char *, const char *); extern int git_config_string(const char **, const char *, const char *); extern int git_config_pathname(const char **, const char *, const char *); +extern int git_config_expiry_date(timestamp_t *, const char *, const char *); extern int git_config_set_in_file_gently(const char *, const char *, const char *); extern void git_config_set_in_file(const char *, const char *, const char *); extern int git_config_set_gently(const char *, const char *); |