Merge branch 'cw/strbuf-cleanup'
Move functions that are not about pure string manipulation out of strbuf.[ch] * cw/strbuf-cleanup: strbuf: remove global variable path: move related function to path object-name: move related functions to object-name credential-store: move related functions to credential-store file abspath: move related functions to abspath strbuf: clarify dependency strbuf: clarify API boundary
This commit is contained in:
@ -1027,7 +1027,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);
|
||||
strbuf_add_commented_lines(&summary, summary_content, len, comment_line_char);
|
||||
free(summary_content);
|
||||
}
|
||||
|
||||
@ -1102,8 +1102,8 @@ 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, "%s", cut_line);
|
||||
strbuf_add_commented_lines(buf, explanation, strlen(explanation));
|
||||
strbuf_commented_addf(buf, comment_line_char, "%s", cut_line);
|
||||
strbuf_add_commented_lines(buf, explanation, strlen(explanation), comment_line_char);
|
||||
}
|
||||
|
||||
void wt_status_add_cut_line(FILE *fp)
|
||||
|
Reference in New Issue
Block a user