diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:07 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:07 -0800 |
| commit | 8fe806bcd5ac621e22982c73306e94d26e56cf79 (patch) | |
| tree | cb2364f86d9d7e17f217916c33731bf54d71fc86 /builtin/describe.c | |
| parent | ab5a940debf4cd1b35b1d7d6eec7afe645d3b46a (diff) | |
| parent | fbac558a9bde48fa23b9c536357ab17c71b4bd22 (diff) | |
| download | git-8fe806bcd5ac621e22982c73306e94d26e56cf79.tar.gz | |
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.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; |
