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
@ -159,7 +159,7 @@ static void show_rev(int type, const struct object_id *oid, const char *name)
|
||||
}
|
||||
}
|
||||
else if (abbrev)
|
||||
show_with_type(type, find_unique_abbrev(oid->hash, abbrev));
|
||||
show_with_type(type, find_unique_abbrev(oid, abbrev));
|
||||
else
|
||||
show_with_type(type, oid_to_hex(oid));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user