config: pass repo to git_config_get_expiry_in_days()
Refactor `git_config_get_expiry_in_days()` 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>
This commit is contained in:

committed by
Junio C Hamano

parent
87aace129e
commit
44ebcd6254
3
config.h
3
config.h
@ -718,7 +718,8 @@ int repo_config_get_max_percent_split_change(struct repository *r);
|
||||
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);
|
||||
int repo_config_get_expiry_in_days(struct repository *r, const char *key,
|
||||
timestamp_t *, timestamp_t now);
|
||||
|
||||
/**
|
||||
* First prints the error message specified by the caller in `err` and then
|
||||
|
Reference in New Issue
Block a user