diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-30 16:06:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-30 16:06:03 -0700 |
commit | 669277c551604fddcb4dc9dac888cd956cccacd3 (patch) | |
tree | 796823188e1c01d907f37bfa4c309d1ae60ca804 | |
parent | Merge branch 'js/log-protocol-version' (diff) | |
parent | builtin/merge: avoid -Wformat-extra-args from ancient Xcode (diff) | |
download | tgif-669277c551604fddcb4dc9dac888cd956cccacd3.tar.xz |
Merge branch 'cb/builtin-merge-format-string-fix'
Code clean-up.
* cb/builtin-merge-format-string-fix:
builtin/merge: avoid -Wformat-extra-args from ancient Xcode
-rw-r--r-- | builtin/merge.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index ec8ff88a33..febb0c99c9 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -862,9 +862,11 @@ static void prepare_to_commit(struct commit_list *remoteheads) strbuf_commented_addf(&msg, "\n"); } strbuf_commented_addf(&msg, _(merge_editor_comment)); - strbuf_commented_addf(&msg, _(cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS ? - scissors_editor_comment : - no_scissors_editor_comment), comment_line_char); + if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS) + strbuf_commented_addf(&msg, _(scissors_editor_comment)); + else + strbuf_commented_addf(&msg, + _(no_scissors_editor_comment), comment_line_char); } if (signoff) append_signoff(&msg, ignore_non_trailer(msg.buf, msg.len), 0); |