sha1_name: convert get_sha1_mb to struct object_id
All of the callers of this function use struct object_id, so rename it to get_oid_mb and make it take struct object_id instead of unsigned char *. 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
71445a0fef
commit
151b2911c1
@ -973,7 +973,7 @@ static int parse_branchname_arg(int argc, const char **argv,
|
||||
if (!strcmp(arg, "-"))
|
||||
arg = "@{-1}";
|
||||
|
||||
if (get_sha1_mb(arg, rev->hash)) {
|
||||
if (get_oid_mb(arg, rev)) {
|
||||
/*
|
||||
* Either case (3) or (4), with <something> not being
|
||||
* a commit, or an attempt to use case (1) with an
|
||||
|
||||
Reference in New Issue
Block a user