]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
use strbuf_add_unique_abbrev() for adding short hashes
authorRené Scharfe <l.s.r@web.de>
Sat, 6 Aug 2016 15:41:01 +0000 (17:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Aug 2016 17:33:57 +0000 (10:33 -0700)
commit1eb47f167d65d1d305b9c196a1bb40eb96117cb1
treeb4070ff9aaae093d223b19813e4732dcccdd258a
parent08df31eeccfe1576971ea4ba42570a424c3cfc41
use strbuf_add_unique_abbrev() for adding short hashes

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 and a bit more efficient.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
pretty.c
transport.c