diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-15 22:07:07 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 11:05:51 +0900 |
commit | a98e6101f01b6991e780fc0b75f2937615fa84a9 (patch) | |
tree | 50035adb93a84ce2468f44027e1620c5253a76ec /read-cache.c | |
parent | Convert remaining callers of resolve_gitlink_ref to object_id (diff) | |
download | tgif-a98e6101f01b6991e780fc0b75f2937615fa84a9.tar.xz |
refs: convert resolve_gitlink_ref to struct object_id
Convert the declaration and definition of resolve_gitlink_ref to use
struct object_id and apply the following semantic patch:
@@
expression E1, E2, E3;
@@
- resolve_gitlink_ref(E1, E2, E3.hash)
+ resolve_gitlink_ref(E1, E2, &E3)
@@
expression E1, E2, E3;
@@
- resolve_gitlink_ref(E1, E2, E3->hash)
+ resolve_gitlink_ref(E1, E2, E3)
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index 131485b3a6..7766196aff 100644 --- a/read-cache.c +++ b/read-cache.c @@ -201,7 +201,7 @@ 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", oid.hash) < 0) + if (resolve_gitlink_ref(ce->name, "HEAD", &oid) < 0) return 0; return oidcmp(&oid, &ce->oid); } |