commit_graft_pos(): take an oid instead of a bare hash
authorJeff King <peff@peff.net>
Thu, 28 Jan 2021 06:12:35 +0000 (01:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jan 2021 19:21:07 +0000 (11:21 -0800)
commit98c431b6f9c767657e1c8cb57370fd1db82b341e
treedb31752bd7090672b3eea34e694697e80179760c
parente6362826a0409539642a5738db61827e5978e2e4
commit_graft_pos(): take an oid instead of a bare hash

All of our callers have an object_id, and are just dereferencing the
hash field to pass to us. Let's take the actual object_id instead. We
still access the hash to pass to hash_pos, but it's a step in the right
direction.

This makes the callers slightly simpler, but also gets rid of the
untyped pointer, as well as the now-inaccurate name "sha1".

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
commit.h
shallow.c