Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (22 sloc) 0.897 kB
6eb8ae0 [PATCH] Header files for object parsing
Daniel Barkalow authored
1 #ifndef TREE_H
2 #define TREE_H
3
4 #include "object.h"
5
6 extern const char *tree_type;
7
8 struct tree {
9 struct object object;
136f2e5 Make "struct tree" contain the pointer to the tree buffer
Linus Torvalds authored
10 void *buffer;
11 unsigned long size;
6eb8ae0 [PATCH] Header files for object parsing
Daniel Barkalow authored
12 };
13
5d6ccf5 [PATCH] Anal retentive 'const unsigned char *sha1'
Jason McMullan authored
14 struct tree *lookup_tree(const unsigned char *sha1);
6eb8ae0 [PATCH] Header files for object parsing
Daniel Barkalow authored
15
bd2c39f [PATCH] don't load and decompress objects twice with parse_object()
Nicolas Pitre authored
16 int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size);
17
6eb8ae0 [PATCH] Header files for object parsing
Daniel Barkalow authored
18 int parse_tree(struct tree *tree);
19
77675e2 [PATCH] Add a function for getting a struct tree for an ent.
Daniel Barkalow authored
20 /* Parses and returns the tree in the given ent, chasing tags and commits. */
21 struct tree *parse_tree_indirect(const unsigned char *sha1);
22
3c5e846 ls-tree: major rewrite to do pathspec
Linus Torvalds authored
23 #define READ_TREE_RECURSIVE 1
671f070 add context pointer to read_tree_recursive()
René Scharfe authored
24 typedef int (*read_tree_fn_t)(const unsigned char *, const char *, int, const char *, unsigned int, int, void *);
3c5e846 ls-tree: major rewrite to do pathspec
Linus Torvalds authored
25
521698b Only use a single parser for tree objects
Daniel Barkalow authored
26 extern int read_tree_recursive(struct tree *tree,
27 const char *base, int baselen,
f0096c0 @pclouds Convert read_tree{,_recursive} to support struct pathspec
pclouds authored
28 int stage, struct pathspec *pathspec,
671f070 add context pointer to read_tree_recursive()
René Scharfe authored
29 read_tree_fn_t fn, void *context);
3c5e846 ls-tree: major rewrite to do pathspec
Linus Torvalds authored
30
f0096c0 @pclouds Convert read_tree{,_recursive} to support struct pathspec
pclouds authored
31 extern int read_tree(struct tree *tree, int stage, struct pathspec *pathspec);
3c5e846 ls-tree: major rewrite to do pathspec
Linus Torvalds authored
32
6eb8ae0 [PATCH] Header files for object parsing
Daniel Barkalow authored
33 #endif /* TREE_H */
Something went wrong with that request. Please try again.