diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-12-17 07:43:55 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-18 19:44:31 +0100 |
commit | 71e5afee8be62c9602838f859592539d8728cc56 (patch) | |
tree | 10ad5b0025baef9f9632a1c7b442f15a1f9ac976 /mailinfo.h | |
parent | diagnose: stop using `the_repository` (diff) | |
download | git-71e5afee8be62c9602838f859592539d8728cc56.tar.xz git-71e5afee8be62c9602838f859592539d8728cc56.zip |
mailinfo: stop using `the_repository`
Stop using `the_repository` in the "mailinfo" subsystem by passing in
a repository when setting up the mailinfo structure.
Adjust callers accordingly by using `the_repository`. While there may be
some callers that have a repository available in their context, this
trivial conversion allows for easier verification and bubbles up the use
of `the_repository` by one level.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.h')
-rw-r--r-- | mailinfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mailinfo.h b/mailinfo.h index f2ffd0349e..1f20664165 100644 --- a/mailinfo.h +++ b/mailinfo.h @@ -5,6 +5,8 @@ #define MAX_BOUNDARIES 5 +struct repository; + enum quoted_cr_action { quoted_cr_unset = -1, quoted_cr_nowarn, @@ -49,7 +51,7 @@ struct mailinfo { }; int mailinfo_parse_quoted_cr_action(const char *actionstr, int *action); -void setup_mailinfo(struct mailinfo *); +void setup_mailinfo(struct repository *r, struct mailinfo *); int mailinfo(struct mailinfo *, const char *msg, const char *patch); void clear_mailinfo(struct mailinfo *); |