Merge branch 'rs/use-strbuf-add-unique-abbrev'
A small code clean-up. * rs/use-strbuf-add-unique-abbrev: use strbuf_add_unique_abbrev() for adding short hashes
This commit is contained in:
@ -706,8 +706,7 @@ static int add_pending_uninteresting_ref(const char *refname,
|
||||
static void describe_one_orphan(struct strbuf *sb, struct commit *commit)
|
||||
{
|
||||
strbuf_addstr(sb, " ");
|
||||
strbuf_addstr(sb,
|
||||
find_unique_abbrev(commit->object.oid.hash, DEFAULT_ABBREV));
|
||||
strbuf_add_unique_abbrev(sb, commit->object.oid.hash, DEFAULT_ABBREV);
|
||||
strbuf_addch(sb, ' ');
|
||||
if (!parse_commit(commit))
|
||||
pp_commit_easy(CMIT_FMT_ONELINE, commit, sb);
|
||||
|
Reference in New Issue
Block a user