diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 23:21:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 23:21:42 +0200 |
commit | 48aa37ed4266e75340abd3232860d6d14a30c774 (patch) | |
tree | 3e60b02a98d98b64b604da514f345561fed293c6 /path.c | |
parent | Merge branch 'lf/recv-sideband-cleanup' into maint (diff) | |
parent | strbuf: avoid calling strbuf_grow() twice in strbuf_addbuf() (diff) | |
download | git-48aa37ed4266e75340abd3232860d6d14a30c774.tar.xz git-48aa37ed4266e75340abd3232860d6d14a30c774.zip |
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 'path.c')
-rw-r--r-- | path.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -483,7 +483,7 @@ static void do_submodule_path(struct strbuf *buf, const char *path, strbuf_addstr(buf, git_dir); } strbuf_addch(buf, '/'); - strbuf_addstr(&git_submodule_dir, buf->buf); + strbuf_addbuf(&git_submodule_dir, buf); strbuf_vaddf(buf, fmt, args); |