summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-03-22 14:24:14 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-22 14:24:14 -0700
commit9bcb48912c73c92409e430ad4614d14414a8c5ad (patch)
tree5ac9e69dbb96acdeac1d63438af3c32435a2902b /builtin
parentMerge branch 'ks/submodule-doc-updates' into maint (diff)
parentdescribe: use strbuf_add_unique_abbrev() for adding short hashes (diff)
downloadtgif-9bcb48912c73c92409e430ad4614d14414a8c5ad.tar.xz
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
Diffstat (limited to 'builtin')
-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;