summaryrefslogtreecommitdiff
path: root/builtin/describe.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-02-13 13:39:07 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-13 13:39:07 -0800
commit8fe806bcd5ac621e22982c73306e94d26e56cf79 (patch)
treecb2364f86d9d7e17f217916c33731bf54d71fc86 /builtin/describe.c
parentMerge branch 'ks/submodule-doc-updates' (diff)
parentdescribe: use strbuf_add_unique_abbrev() for adding short hashes (diff)
downloadtgif-8fe806bcd5ac621e22982c73306e94d26e56cf79.tar.xz
Merge branch 'rs/describe-unique-abbrev'
Code clean-up. * rs/describe-unique-abbrev: describe: use strbuf_add_unique_abbrev() for adding short hashes
Diffstat (limited to 'builtin/describe.c')
-rw-r--r--builtin/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/describe.c b/builtin/describe.c
index 6fe1c51281..c428984706 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -383,7 +383,7 @@ static void describe_commit(struct object_id *oid, struct strbuf *dst)
if (!match_cnt) {
struct object_id *cmit_oid = &cmit->object.oid;
if (always) {
- strbuf_addstr(dst, find_unique_abbrev(cmit_oid->hash, abbrev));
+ strbuf_add_unique_abbrev(dst, cmit_oid->hash, abbrev);
if (suffix)
strbuf_addstr(dst, suffix);
return;