summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-25 21:13:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-25 21:13:47 (GMT)
commitb4e8a847ba4e775fb7d422b2daf18356db50eec8 (patch)
treeb7beddae0b6b9800c8a40dfc6b4be33764b6a4a6 /wt-status.c
parent7b01ab562ae14f5e5aedf0c0e769c74925a19809 (diff)
parent31471ba21ee29886ab856981e52f723c913d7f40 (diff)
downloadgit-b4e8a847ba4e775fb7d422b2daf18356db50eec8.zip
git-b4e8a847ba4e775fb7d422b2daf18356db50eec8.tar.gz
git-b4e8a847ba4e775fb7d422b2daf18356db50eec8.tar.bz2
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
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index de62ab2..19cbc39 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -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);