diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-02 00:25:40 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-02 13:59:50 +0900 |
commit | 3b683bcf85aead6c980d79e6f81da8be362341bc (patch) | |
tree | 9402a713eb59b55dafec08a52795a9970e3cbfa5 /sha1_name.c | |
parent | tree-walk: avoid hard-coded 20 constant (diff) | |
download | tgif-3b683bcf85aead6c980d79e6f81da8be362341bc.tar.xz |
tree-walk: convert get_tree_entry_follow_symlinks to object_id
Since the only caller of this function already uses struct object_id,
update get_tree_entry_follow_symlinks to use it in parameters and
internally.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_name.c b/sha1_name.c index 7043652a24..7c2d08a202 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -1685,8 +1685,8 @@ static int get_oid_with_context_1(const char *name, if (new_filename) filename = new_filename; if (flags & GET_OID_FOLLOW_SYMLINKS) { - ret = get_tree_entry_follow_symlinks(tree_oid.hash, - filename, oid->hash, &oc->symlink_path, + ret = get_tree_entry_follow_symlinks(&tree_oid, + filename, oid, &oc->symlink_path, &oc->mode); } else { ret = get_tree_entry(&tree_oid, filename, oid, |