Remove get_object_hash.
Convert all instances of get_object_hash to use an appropriate reference to the hash member of the oid member of struct object. This provides no functional change, as it is essentially a macro substitution. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:

committed by
Jeff King

parent
f2fd0760f6
commit
ed1c9977cb
@ -291,7 +291,7 @@ static void show_one_commit(struct commit *commit, int no_name)
|
||||
}
|
||||
else
|
||||
printf("[%s] ",
|
||||
find_unique_abbrev(get_object_hash(commit->object),
|
||||
find_unique_abbrev(commit->object.oid.hash,
|
||||
DEFAULT_ABBREV));
|
||||
}
|
||||
puts(pretty_str);
|
||||
@ -867,7 +867,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
|
||||
head_len,
|
||||
ref_name[i],
|
||||
head_oid.hash,
|
||||
get_object_hash(rev[i]->object));
|
||||
rev[i]->object.oid.hash);
|
||||
if (extra < 0)
|
||||
printf("%c [%s] ",
|
||||
is_head ? '*' : ' ', ref_name[i]);
|
||||
|
Reference in New Issue
Block a user