grep.c: remove implicit dependency on the_index
[gitweb.git] / tree-walk.h
index 4617deeb0e09e71c7ba7231192ece055eccb2dde..196831007e618f808661bf4b7f54030890f48563 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef TREE_WALK_H
 #define TREE_WALK_H
 
+struct strbuf;
+
 struct name_entry {
        const struct object_id *oid;
        const char *path;
@@ -64,7 +66,7 @@ enum follow_symlinks_result {
                       */
 };
 
-enum follow_symlinks_result get_tree_entry_follow_symlinks(unsigned char *tree_sha1, const char *name, unsigned char *result, struct strbuf *result_path, unsigned *mode);
+enum follow_symlinks_result get_tree_entry_follow_symlinks(struct object_id *tree_oid, const char *name, struct object_id *result, struct strbuf *result_path, unsigned *mode);
 
 struct traverse_info {
        const char *traverse_path;