diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-25 14:13:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-25 14:13:47 -0700 |
commit | b4e8a847ba4e775fb7d422b2daf18356db50eec8 (patch) | |
tree | b7beddae0b6b9800c8a40dfc6b4be33764b6a4a6 /dir.c | |
parent | Merge branch 'ew/autoconf-pthread' (diff) | |
parent | strbuf: avoid calling strbuf_grow() twice in strbuf_addbuf() (diff) | |
download | tgif-b4e8a847ba4e775fb7d422b2daf18356db50eec8.tar.xz |
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 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2364,7 +2364,7 @@ void write_untracked_extension(struct strbuf *out, struct untracked_cache *untra varint_len = encode_varint(untracked->ident.len, varbuf); strbuf_add(out, varbuf, varint_len); - strbuf_add(out, untracked->ident.buf, untracked->ident.len); + strbuf_addbuf(out, &untracked->ident); strbuf_add(out, ouc, ouc_size(len)); free(ouc); |