diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-03-12 05:27:30 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-14 19:23:48 +0300 |
commit | aab9583f7b5ea5463eb3f653a0b4ecac7539dc94 (patch) | |
tree | 8a35067c58e60715b459d7c2e44bbae71344d657 /ref-filter.c | |
parent | 40f5555ca331fa7855406c674cb60b087e5dfc1a (diff) |
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>
Diffstat (limited to 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ref-filter.c b/ref-filter.c index dbe554dffa..ca2bc7e6b2 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -742,13 +742,13 @@ static int grab_objectname(const char *name, const struct object_id *oid, { if (starts_with(name, "objectname")) { if (atom->u.objectname.option == O_SHORT) { - v->s = xstrdup(find_unique_abbrev(oid->hash, DEFAULT_ABBREV)); + v->s = xstrdup(find_unique_abbrev(oid, DEFAULT_ABBREV)); return 1; } else if (atom->u.objectname.option == O_FULL) { v->s = xstrdup(oid_to_hex(oid)); return 1; } else if (atom->u.objectname.option == O_LENGTH) { - v->s = xstrdup(find_unique_abbrev(oid->hash, atom->u.objectname.length)); + v->s = xstrdup(find_unique_abbrev(oid, atom->u.objectname.length)); return 1; } else die("BUG: unknown %%(objectname) option"); |