Merge branch 'rs/use-strbuf-addbuf'
Code cleanup. * rs/use-strbuf-addbuf: strbuf: avoid calling strbuf_grow() twice in strbuf_addbuf() use strbuf_addbuf() for appending a strbuf to another
This commit is contained in:
@ -1063,7 +1063,7 @@ static void abbrev_sha1_in_line(struct strbuf *line)
|
||||
strbuf_addf(split[1], "%s ", abbrev);
|
||||
strbuf_reset(line);
|
||||
for (i = 0; split[i]; i++)
|
||||
strbuf_addf(line, "%s", split[i]->buf);
|
||||
strbuf_addbuf(line, split[i]);
|
||||
}
|
||||
}
|
||||
strbuf_list_free(split);
|
||||
|
||||
Reference in New Issue
Block a user