summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-13 11:13:59 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-13 19:01:03 +0200
commit87aace129ef39fc52ca26e8d31c356c8d05ea910 (patch)
treeb058e5e73f83b9fe65773fc2189a10f195163154 /config.h
parentconfig: pass repo to `git_config_get_max_percent_split_change()` (diff)
downloadgit-87aace129ef39fc52ca26e8d31c356c8d05ea910.tar.xz
git-87aace129ef39fc52ca26e8d31c356c8d05ea910.zip
config: pass repo to `git_config_get_expiry()`
Refactor `git_config_get_expiry()` to accept a `struct repository` such that we can get rid of the implicit dependency on `the_repository`. Rename the function accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index dd7127b8e9..7674617a1d 100644
--- a/config.h
+++ b/config.h
@@ -715,7 +715,7 @@ int repo_config_get_split_index(struct repository *r);
int repo_config_get_max_percent_split_change(struct repository *r);
/* This dies if the configured or default date is in the future */
-int git_config_get_expiry(const char *key, const char **output);
+int repo_config_get_expiry(struct repository *r, const char *key, const char **output);
/* parse either "this many days" integer, or "5.days.ago" approxidate */
int git_config_get_expiry_in_days(const char *key, timestamp_t *, timestamp_t now);