summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-01-31 22:10:56 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-01 00:07:01 (GMT)
commit50f9a858ada10b3b57691a313a1c78b0bcbe5947 (patch)
tree17d66506c96ba46c8bb11eee97076c91f7a8e30e /diff.h
parent1a5c3a01aad0d0f5d68ffcc1c33aafca9e253591 (diff)
downloadgit-50f9a858ada10b3b57691a313a1c78b0bcbe5947.zip
git-50f9a858ada10b3b57691a313a1c78b0bcbe5947.tar.gz
git-50f9a858ada10b3b57691a313a1c78b0bcbe5947.tar.bz2
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>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 9a0169c..32134d7 100644
--- a/diff.h
+++ b/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,