]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
use strbuf_add_unique_abbrev() for adding short hashes, part 3
authorRené Scharfe <l.s.r@web.de>
Sat, 8 Oct 2016 15:38:47 +0000 (17:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2016 18:58:25 +0000 (11:58 -0700)
commita94bb683970a111b467a36590ca36e52754ad504
treeafb36d917037d10a78c3a5c251f0430d3f4e1e5f
parent39ea59a2570547166834ceeff9ae0c0c05748f35
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>
merge-recursive.c
pretty.c
submodule.c
wt-status.c