builtin/blame: convert static function to struct object_id

This function is a caller of lookup_commit_reference_gently, which we will convert later. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 1, 2017 at 02:29 UTC 4931b02f4ab6cbffc39feca95a055ce1a92a20f9
1 file changed +3 -3
builtin/blame.c
+3 -3
@@ -2461,7 +2461,7 @@ static const char *dwim_reverse_initial(struct scoreboard *sb)
2461 */
2462 struct object *obj;
2463 struct commit *head_commit;
2464 - unsigned char head_sha1[20];
2464 + struct object_id head_oid;
2465
2466 if (sb->revs->pending.nr != 1)
2467 return NULL;
@@ -2473,9 +2473,9 @@ static const char *dwim_reverse_initial(struct scoreboard *sb)
2473 return NULL;
2474
2475 /* Do we have HEAD? */
2476 - if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, head_sha1, NULL))
2476 + if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, head_oid.hash, NULL))
2477 return NULL;
2478 - head_commit = lookup_commit_reference_gently(head_sha1, 1);
2478 + head_commit = lookup_commit_reference_gently(head_oid.hash, 1);
2479 if (!head_commit)
2480 return NULL;
2481