Merge branch 'rs/describe-unique-abbrev'
Code clean-up. * rs/describe-unique-abbrev: describe: use strbuf_add_unique_abbrev() for adding short hashes
This commit is contained in:
commit
8fe806bcd5
@ -383,7 +383,7 @@ static void describe_commit(struct object_id *oid, struct strbuf *dst)
|
|||||||
if (!match_cnt) {
|
if (!match_cnt) {
|
||||||
struct object_id *cmit_oid = &cmit->object.oid;
|
struct object_id *cmit_oid = &cmit->object.oid;
|
||||||
if (always) {
|
if (always) {
|
||||||
strbuf_addstr(dst, find_unique_abbrev(cmit_oid->hash, abbrev));
|
strbuf_add_unique_abbrev(dst, cmit_oid->hash, abbrev);
|
||||||
if (suffix)
|
if (suffix)
|
||||||
strbuf_addstr(dst, suffix);
|
strbuf_addstr(dst, suffix);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user