diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:27:55 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:27:56 -0700 |
| commit | f13710e32e69fd267c61035731af61913db2060b (patch) | |
| tree | 2e6b6ba10dc42ab9a45992a381a122bbe58ccb1a /builtin/log.c | |
| parent | 09e5e7f718f3c4259184770da816eb4a7c054d0b (diff) | |
| parent | cadcf58085cada6e781444cbdde6d4b0067ebe4c (diff) | |
| download | git-f13710e32e69fd267c61035731af61913db2060b.tar.gz | |
Merge branch 'ds/format-patch-rfc-and-k' into maint-2.45
The "-k" and "--rfc" options of "format-patch" will now error out
when used together, as one tells us not to add anything to the
title of the commit, and the other one tells us to add "RFC" in
addition to "PATCH".
* ds/format-patch-rfc-and-k:
format-patch: ensure that --rfc and -k are mutually exclusive
Diffstat (limited to 'builtin/log.c')
| -rw-r--r-- | builtin/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c index c0a8bb95e9..8bab30fcc7 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -2050,8 +2050,10 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) if (cover_from_description_arg) cover_from_description_mode = parse_cover_from_description(cover_from_description_arg); - if (rfc) + if (rfc) { strbuf_insertstr(&sprefix, 0, "RFC "); + subject_prefix = 1; + } if (reroll_count) { strbuf_addf(&sprefix, " v%s", reroll_count); |
