use strbuf_add_unique_abbrev() for adding short hashes, part 2
authorRené Scharfe <l.s.r@web.de>
Tue, 27 Sep 2016 19:11:58 +0000 (21:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Sep 2016 21:02:40 +0000 (14:02 -0700)
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.

1eb47f167d65d1d305b9c196a1bb40eb96117cb1 already converted six cases,
this patch covers three more.

A semantic patch for Coccinelle is included for easier checking for
new cases that might be introduced in the future.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found