diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-06-24 14:28:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-24 14:28:38 -0700 |
commit | 8af3c643d9c042d806a17fe706470a8c1acee231 (patch) | |
tree | 87438082732a3f76f36c1724fa5edaabb773b836 /strbuf.c | |
parent | ef9402366ccf4a04348024d51c0d3897f8b868c9 (diff) | |
parent | fe9e2aefd4adac63821d0c007effcc8087e32ad6 (diff) | |
download | git-8af3c643d9c042d806a17fe706470a8c1acee231.tar.gz |
Merge branch 'rs/pretty-add-again'
The pretty-format specifiers like '%h', '%t', etc. had an
optimization that no longer works correctly. In preparation/hope
of getting it correctly implemented, first discard the optimization
that is broken.
* rs/pretty-add-again:
pretty: recalculate duplicate short hashes
Diffstat (limited to 'strbuf.c')
-rw-r--r-- | strbuf.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -204,13 +204,6 @@ void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2) strbuf_setlen(sb, sb->len + sb2->len); } -void strbuf_adddup(struct strbuf *sb, size_t pos, size_t len) -{ - strbuf_grow(sb, len); - memcpy(sb->buf + sb->len, sb->buf + pos, len); - strbuf_setlen(sb, sb->len + len); -} - void strbuf_addchars(struct strbuf *sb, int c, size_t n) { strbuf_grow(sb, n); |