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
@ -96,7 +96,7 @@ static void print_new_head_line(struct commit *commit)
|
||||
const char *hex, *body;
|
||||
const char *msg;
|
||||
|
||||
hex = find_unique_abbrev(get_object_hash(commit->object), DEFAULT_ABBREV);
|
||||
hex = find_unique_abbrev(commit->object.oid.hash, DEFAULT_ABBREV);
|
||||
printf(_("HEAD is now at %s"), hex);
|
||||
msg = logmsg_reencode(commit, NULL, get_log_output_encoding());
|
||||
body = strstr(msg, "\n\n");
|
||||
|
||||
Reference in New Issue
Block a user