Skip to content

Commit 9bcb489

Browse files
committed
Merge branch 'rs/describe-unique-abbrev' into maint
Code clean-up. * rs/describe-unique-abbrev: describe: use strbuf_add_unique_abbrev() for adding short hashes
2 parents 60736db + fbac558 commit 9bcb489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static void describe_commit(struct object_id *oid, struct strbuf *dst)
383383
if (!match_cnt) {
384384
struct object_id *cmit_oid = &cmit->object.oid;
385385
if (always) {
386-
strbuf_addstr(dst, find_unique_abbrev(cmit_oid->hash, abbrev));
386+
strbuf_add_unique_abbrev(dst, cmit_oid->hash, abbrev);
387387
if (suffix)
388388
strbuf_addstr(dst, suffix);
389389
return;

0 commit comments

Comments
 (0)