summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2017-02-27 18:00:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-01 21:34:54 (GMT)
commit77d67977cac46aa6c07c66ce9e2470f00feb9d20 (patch)
tree580440bf17327f2d08c337d6f05cbb0836895c26 /cache.h
parent0d59ffb47ed58f519bfa2796d38364496735ab19 (diff)
downloadgit-77d67977cac46aa6c07c66ce9e2470f00feb9d20.zip
git-77d67977cac46aa6c07c66ce9e2470f00feb9d20.tar.gz
git-77d67977cac46aa6c07c66ce9e2470f00feb9d20.tar.bz2
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index f442f281..279415a 100644
--- a/cache.h
+++ b/cache.h
@@ -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.