Convert remaining callers of resolve_gitlink_ref to object_id

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
brian m. carlson
2017-10-15 22:07:06 +00:00
committed by Junio C Hamano
parent bcd2986473
commit 1053fe829c
4 changed files with 13 additions and 13 deletions

View File

@ -191,7 +191,7 @@ static int ce_compare_link(const struct cache_entry *ce, size_t expected_size)
static int ce_compare_gitlink(const struct cache_entry *ce)
{
unsigned char sha1[20];
struct object_id oid;
/*
* We don't actually require that the .git directory
@ -201,9 +201,9 @@ static int ce_compare_gitlink(const struct cache_entry *ce)
*
* If so, we consider it always to match.
*/
if (resolve_gitlink_ref(ce->name, "HEAD", sha1) < 0)
if (resolve_gitlink_ref(ce->name, "HEAD", oid.hash) < 0)
return 0;
return hashcmp(sha1, ce->oid.hash);
return oidcmp(&oid, &ce->oid);
}
static int ce_modified_check_fs(const struct cache_entry *ce, struct stat *st)