summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-07-19 20:36:29 +0200
committerJunio C Hamano <gitster@pobox.com>2016-07-19 11:48:35 -0700
commit8109984d619467ad26c6a76d59b0a5de8a86e6d6 (patch)
treebf026f0165f1b8268089c4ec0e0bb402e3a6ee15 /wt-status.c
parente46579643d56162299b1756b70d418005351b256 (diff)
downloadgit-8109984d619467ad26c6a76d59b0a5de8a86e6d6.tar.gz
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>
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 ced53dd1d4..51c0d7fea7 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -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++)