Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Convert find_unique_abbrev* to struct object_id
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 07309045ef6679cdbb8024494c82b16237524e66..aa97ad09197b4847329a58a72fd6022cc1742043 100644
(file)
--- a/
strbuf.c
+++ b/
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);
}