aboutsummaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 14:21:42 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-08 14:21:42 -0700
commit48aa37ed4266e75340abd3232860d6d14a30c774 (patch)
tree3e60b02a98d98b64b604da514f345561fed293c6 /wt-status.c
parentee7fd70edfc51ec88865c573ff950b4dfbef1833 (diff)
parent31471ba21ee29886ab856981e52f723c913d7f40 (diff)
downloadgit-48aa37ed4266e75340abd3232860d6d14a30c774.tar.gz
git-48aa37ed4266e75340abd3232860d6d14a30c774.tar.xz
Merge branch 'rs/use-strbuf-addbuf' into maint
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 4ce4e35ac..617a28430 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -1062,7 +1062,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);