@@ -1141,8 +1141,8 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
11411141 strbuf_addstr (sb , diff_get_color (c -> auto_color , DIFF_RESET ));
11421142 return 1 ;
11431143 }
1144- strbuf_addstr (sb , find_unique_abbrev ( commit -> object .oid .hash ,
1145- c -> pretty_ctx -> abbrev ) );
1144+ strbuf_add_unique_abbrev (sb , commit -> object .oid .hash ,
1145+ c -> pretty_ctx -> abbrev );
11461146 strbuf_addstr (sb , diff_get_color (c -> auto_color , DIFF_RESET ));
11471147 c -> abbrev_commit_hash .len = sb -> len - c -> abbrev_commit_hash .off ;
11481148 return 1 ;
@@ -1152,8 +1152,8 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
11521152 case 't' : /* abbreviated tree hash */
11531153 if (add_again (sb , & c -> abbrev_tree_hash ))
11541154 return 1 ;
1155- strbuf_addstr (sb , find_unique_abbrev ( commit -> tree -> object .oid .hash ,
1156- c -> pretty_ctx -> abbrev ) );
1155+ strbuf_add_unique_abbrev (sb , commit -> tree -> object .oid .hash ,
1156+ c -> pretty_ctx -> abbrev );
11571157 c -> abbrev_tree_hash .len = sb -> len - c -> abbrev_tree_hash .off ;
11581158 return 1 ;
11591159 case 'P' : /* parent hashes */
@@ -1169,9 +1169,8 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
11691169 for (p = commit -> parents ; p ; p = p -> next ) {
11701170 if (p != commit -> parents )
11711171 strbuf_addch (sb , ' ' );
1172- strbuf_addstr (sb , find_unique_abbrev (
1173- p -> item -> object .oid .hash ,
1174- c -> pretty_ctx -> abbrev ));
1172+ strbuf_add_unique_abbrev (sb , p -> item -> object .oid .hash ,
1173+ c -> pretty_ctx -> abbrev );
11751174 }
11761175 c -> abbrev_parent_hashes .len = sb -> len -
11771176 c -> abbrev_parent_hashes .off ;
0 commit comments