]> gitweb.ps.run Git - ps-cgit/blobdiff - git.h
Allow relative paths for cgit_cache_root
[ps-cgit] / git.h
diff --git a/git.h b/git.h
index dfa3542256bbbfa963f83670dc2f8b49d0b960ff..a3f977c5cb86b2ec066d50017f94fb6154741a2b 100644 (file)
--- a/git.h
+++ b/git.h
@@ -188,6 +188,19 @@ struct tree {
 };
 
 
+struct tree *lookup_tree(const unsigned char *sha1);
+int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size);
+int parse_tree(struct tree *tree);
+struct tree *parse_tree_indirect(const unsigned char *sha1);
+
+typedef int (*read_tree_fn_t)(const unsigned char *, const char *, int, const char *, unsigned int, int);
+
+extern int read_tree_recursive(struct tree *tree,
+                              const char *base, int baselen,
+                              int stage, const char **match,
+                              read_tree_fn_t fn);
+
+extern int read_tree(struct tree *tree, int stage, const char **paths);
 
 
 /* from git:commit.h */