diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-02-13 21:39:07 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 21:39:07 (GMT) |
commit | 8fe806bcd5ac621e22982c73306e94d26e56cf79 (patch) | |
tree | cb2364f86d9d7e17f217916c33731bf54d71fc86 | |
parent | ab5a940debf4cd1b35b1d7d6eec7afe645d3b46a (diff) | |
parent | fbac558a9bde48fa23b9c536357ab17c71b4bd22 (diff) | |
download | git-8fe806bcd5ac621e22982c73306e94d26e56cf79.zip git-8fe806bcd5ac621e22982c73306e94d26e56cf79.tar.gz git-8fe806bcd5ac621e22982c73306e94d26e56cf79.tar.bz2 |
Merge branch 'rs/describe-unique-abbrev'
Code clean-up.
* rs/describe-unique-abbrev:
describe: use strbuf_add_unique_abbrev() for adding short hashes
-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 6fe1c51..c428984 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; |