diff options
author | René Scharfe <l.s.r@web.de> | 2016-09-27 21:11:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-27 14:02:40 -0700 |
commit | f937d78553ce22505543580ae7958d9f5ffeeb89 (patch) | |
tree | a6344bff6d36dda957aa9f0242ffa8ee47127a8b /t/t2024-checkout-dwim.sh | |
parent | use strbuf_addstr() instead of strbuf_addf() with "%s", part 2 (diff) | |
download | tgif-f937d78553ce22505543580ae7958d9f5ffeeb89.tar.xz |
use strbuf_add_unique_abbrev() for adding short hashes, part 2
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>
Diffstat (limited to 't/t2024-checkout-dwim.sh')
0 files changed, 0 insertions, 0 deletions