strbuf: accept a comment string for strbuf_add_commented_lines()
commita1bb146aaf551db4ff9b4aafaaa2f7a9f9574f93
authorJeff King <peff@peff.net>
Tue, 12 Mar 2024 09:17:32 +0000 (12 05:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Mar 2024 20:28:10 +0000 (12 13:28 -0700)
tree7c6bf2855b7133f7879fe7d0e6198ddbd59f533f
parent3a35d96284b4a0551a350707df68f368947630d1
strbuf: accept a comment string for strbuf_add_commented_lines()

As part of our transition to multi-byte comment characters, let's take a
NUL-terminated string pointer for strbuf_add_commented_lines() rather
than a single character.

All of the callers have to be adjusted; most can just pass
comment_line_str rather than comment_line_char.

And now our "cheat" in strbuf_commented_addf() can go away, as we can
take the full string from it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c
builtin/stripspace.c
fmt-merge-msg.c
rebase-interactive.c
sequencer.c
strbuf.c
strbuf.h
wt-status.c