Make the "struct tree_desc" operations available to others
We have operations to "extract" and "update" a "struct tree_desc", but we only used them in tree-diff.c and they were static to that file. But other tree traversal functions can use them to their advantage Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
committed by
Junio C Hamano
parent
1a5c3a01aa
commit
50f9a858ad
3
diff.h
3
diff.h
@ -13,6 +13,9 @@ struct tree_desc {
|
||||
unsigned long size;
|
||||
};
|
||||
|
||||
extern void update_tree_entry(struct tree_desc *);
|
||||
extern const unsigned char *tree_entry_extract(struct tree_desc *, const char **, unsigned int *);
|
||||
|
||||
struct diff_options;
|
||||
|
||||
typedef void (*change_fn_t)(struct diff_options *options,
|
||||
|
||||
Reference in New Issue
Block a user