Merge branch 'nd/worktree-kill-parse-ref'
[gitweb.git] / config.h
index 18b6f3f724bd823bf98f039e4699b0c2c5dc5393..97471b887320b48f1b4c2d5a2023f6ffd1acf94e 100644 (file)
--- a/config.h
+++ b/config.h
@@ -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;