diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-03-12 03:27:51 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-14 17:23:50 +0100 |
commit | 916bc35b29af6e0f4f215dea9c84e4185de0fec4 (patch) | |
tree | 21f8318b909c7dc21129bad02d6adc7d46fbc705 /archive.c | |
parent | streaming: convert istream internals to struct object_id (diff) | |
download | git-916bc35b29af6e0f4f215dea9c84e4185de0fec4.tar.xz git-916bc35b29af6e0f4f215dea9c84e4185de0fec4.zip |
tree-walk: convert tree entry functions to object_id
Convert get_tree_entry and find_tree_entry to take pointers to struct
object_id.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
-rw-r--r-- | archive.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -397,8 +397,8 @@ static void parse_treeish_arg(const char **argv, unsigned int mode; int err; - err = get_tree_entry(tree->object.oid.hash, prefix, - tree_oid.hash, &mode); + err = get_tree_entry(&tree->object.oid, prefix, &tree_oid, + &mode); if (err || !S_ISDIR(mode)) die("current working directory is untracked"); |