diff options
author | Christian Couder <christian.couder@gmail.com> | 2017-02-27 19:00:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-01 13:34:54 -0800 |
commit | 77d67977cac46aa6c07c66ce9e2470f00feb9d20 (patch) | |
tree | 580440bf17327f2d08c337d6f05cbb0836895c26 /cache.h | |
parent | 0d59ffb47ed58f519bfa2796d38364496735ab19 (diff) | |
download | git-77d67977cac46aa6c07c66ce9e2470f00feb9d20.tar.gz |
config: add git_config_get_expiry() from gc.c
This function will be used in a following commit to get the expiration
time of the shared index files from the config, and it is generic
enough to be put in "config.c".
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1827,6 +1827,9 @@ extern int git_config_get_untracked_cache(void); extern int git_config_get_split_index(void); 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); + /* * This is a hack for test programs like test-dump-untracked-cache to * ensure that they do not modify the untracked cache when reading it. |