diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-03-22 14:24:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-22 14:24:14 -0700 |
commit | 9bcb48912c73c92409e430ad4614d14414a8c5ad (patch) | |
tree | 5ac9e69dbb96acdeac1d63438af3c32435a2902b /builtin/describe.c | |
parent | Merge branch 'ks/submodule-doc-updates' into maint (diff) | |
parent | describe: use strbuf_add_unique_abbrev() for adding short hashes (diff) | |
download | tgif-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/describe.c')
-rw-r--r-- | builtin/describe.c | 2 |
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; |