Skip to content

Commit 669277c

Browse files
committed
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
2 parents b81a85e + 00e302d commit 669277c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

builtin/merge.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,9 +862,11 @@ static void prepare_to_commit(struct commit_list *remoteheads)
862862
strbuf_commented_addf(&msg, "\n");
863863
}
864864
strbuf_commented_addf(&msg, _(merge_editor_comment));
865-
strbuf_commented_addf(&msg, _(cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS ?
866-
scissors_editor_comment :
867-
no_scissors_editor_comment), comment_line_char);
865+
if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS)
866+
strbuf_commented_addf(&msg, _(scissors_editor_comment));
867+
else
868+
strbuf_commented_addf(&msg,
869+
_(no_scissors_editor_comment), comment_line_char);
868870
}
869871
if (signoff)
870872
append_signoff(&msg, ignore_non_trailer(msg.buf, msg.len), 0);

0 commit comments

Comments
 (0)