Convert find_unique_abbrev* to struct object_id
Convert find_unique_abbrev and find_unique_abbrev_r to each take a pointer to struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
40f5555ca3
commit
aab9583f7b
2
strbuf.c
2
strbuf.c
@ -878,7 +878,7 @@ void strbuf_add_unique_abbrev(struct strbuf *sb, const struct object_id *oid,
|
||||
{
|
||||
int r;
|
||||
strbuf_grow(sb, GIT_SHA1_HEXSZ + 1);
|
||||
r = find_unique_abbrev_r(sb->buf + sb->len, oid->hash, abbrev_len);
|
||||
r = find_unique_abbrev_r(sb->buf + sb->len, oid, abbrev_len);
|
||||
strbuf_setlen(sb, sb->len + r);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user