]> git.ipfire.org Git - thirdparty/git.git/blobdiff - wt-status.c
strbuf: accept a comment string for strbuf_add_commented_lines()
[thirdparty/git.git] / wt-status.c
index 2be2eb094c7231f8d45e368490f5ef44d9c0331a..6b81f5349cf772f442e59ca93f787b03badcb865 100644 (file)
@@ -1028,7 +1028,7 @@ static void wt_longstatus_print_submodule_summary(struct wt_status *s, int uncom
        if (s->display_comment_prefix) {
                size_t len;
                summary_content = strbuf_detach(&summary, &len);
-               strbuf_add_commented_lines(&summary, summary_content, len, comment_line_char);
+               strbuf_add_commented_lines(&summary, summary_content, len, comment_line_str);
                free(summary_content);
        }
 
@@ -1104,7 +1104,7 @@ void wt_status_append_cut_line(struct strbuf *buf)
        const char *explanation = _("Do not modify or remove the line above.\nEverything below it will be ignored.");
 
        strbuf_commented_addf(buf, comment_line_str, "%s", cut_line);
-       strbuf_add_commented_lines(buf, explanation, strlen(explanation), comment_line_char);
+       strbuf_add_commented_lines(buf, explanation, strlen(explanation), comment_line_str);
 }
 
 void wt_status_add_cut_line(FILE *fp)