]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
prefer comment_line_str to comment_line_char for printing
authorJeff King <peff@peff.net>
Tue, 12 Mar 2024 09:17:34 +0000 (05:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Mar 2024 20:28:10 +0000 (13:28 -0700)
commitf99e1d94f5ed72fd7c5115a814b1087fde919fe5
tree4993814ec63e24425c428658406c9bc76ab4d240
parenta1bb146aaf551db4ff9b4aafaaa2f7a9f9574f93
prefer comment_line_str to comment_line_char for printing

As part of our transition to multi-byte comment characters, we should
use the string variable rather than the historical character variable.
All of the sites adjusted here are just swapping out "%c" for "%s" in
format strings, or strbuf_addch() for strbuf_addstr(). The type system
and printf-attribute give the compiler enough information to make sure
our formats and variable changes all match (especially important for
cases where the format string is defined far away from its use, like
prepare_to_commit() in commit.c).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c
builtin/branch.c
builtin/commit.c
builtin/merge.c
builtin/tag.c
fmt-merge-msg.c
sequencer.c
wt-status.c