diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-15 22:07:07 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 02:05:51 (GMT) |
commit | a98e6101f01b6991e780fc0b75f2937615fa84a9 (patch) | |
tree | 50035adb93a84ce2468f44027e1620c5253a76ec /sha1_file.c | |
parent | 1053fe829c037c5a725786bac35d05a113c91f55 (diff) | |
download | git-a98e6101f01b6991e780fc0b75f2937615fa84a9.zip git-a98e6101f01b6991e780fc0b75f2937615fa84a9.tar.gz git-a98e6101f01b6991e780fc0b75f2937615fa84a9.tar.bz2 |
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 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index cd910b2..0f44351 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -1841,7 +1841,7 @@ int index_path(struct object_id *oid, const char *path, struct stat *st, unsigne strbuf_release(&sb); break; case S_IFDIR: - return resolve_gitlink_ref(path, "HEAD", oid->hash); + return resolve_gitlink_ref(path, "HEAD", oid); default: return error("%s: unsupported file type", path); } |