From: René Scharfe Date: Mon, 15 Jan 2018 17:10:32 +0000 (+0100) Subject: describe: use strbuf_add_unique_abbrev() for adding short hashes X-Git-Tag: v2.16.3~20^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fbac558a9bde48fa23b9c536357ab17c71b4bd22?hp=fbac558a9bde48fa23b9c536357ab17c71b4bd22 describe: use strbuf_add_unique_abbrev() for adding short hashes Call strbuf_add_unique_abbrev() to add an abbreviated hash to a strbuf instead of taking a detour through find_unique_abbrev() and its static buffer. This is shorter and a bit more efficient. Patch generated by Coccinelle (and contrib/coccinelle/strbuf.cocci). Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano ---