use strbuf_addbuf() for appending a strbuf to another
Use strbuf_addbuf() where possible; it's shorter and more efficient. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
e46579643d
commit
8109984d61
@ -1060,7 +1060,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]);
|
||||
}
|
||||
}
|
||||
for (i = 0; split[i]; i++)
|
||||
|
||||
Reference in New Issue
Block a user