summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2016-10-08 17:38:47 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-10 11:58:25 -0700
commita94bb683970a111b467a36590ca36e52754ad504 (patch)
treeafb36d917037d10a78c3a5c251f0430d3f4e1e5f /builtin
parentremove unnecessary NULL check before free(3) (diff)
downloadtgif-a94bb683970a111b467a36590ca36e52754ad504.tar.xz
use strbuf_add_unique_abbrev() for adding short hashes, part 3
Call strbuf_add_unique_abbrev() to add abbreviated hashes to strbufs instead of taking detours through find_unique_abbrev() and its static buffer. This is shorter in most cases and a bit more efficient. The changes here are not easily handled by a semantic patch because they involve removing temporary variables and deconstructing format strings for strbuf_addf(). Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions