diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-16 19:16:35 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-16 19:24:35 +0200 |
commit | cedf9ca955144c04b87209fd07d1a8763ed4e00d (patch) | |
tree | 3c48695d4d30f6658a3bb225c0f46bea0e9c5329 /include/git2 | |
parent | 9bd5a99fea4757e5a17412b81eb5a9223437ebdc (diff) | |
download | libgit2-cedf9ca955144c04b87209fd07d1a8763ed4e00d.tar.gz |
tree: Kill the `git_tree_diff` functions
These are deprecated and replaced with the diffing code in git2/diff.h
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/tree.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h index f75cc1cbb..3a9150520 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -313,40 +313,6 @@ enum git_treewalk_mode { */ GIT_EXTERN(int) git_tree_walk(git_tree *tree, git_treewalk_cb callback, int mode, void *payload); -typedef enum { - GIT_STATUS_ADDED = 1, - GIT_STATUS_DELETED = 2, - GIT_STATUS_MODIFIED = 3, -} git_status_t; - -typedef struct { - unsigned int old_attr; - unsigned int new_attr; - git_oid old_oid; - git_oid new_oid; - git_status_t status; - const char *path; -} git_tree_diff_data; - -typedef int (*git_tree_diff_cb)(const git_tree_diff_data *ptr, void *data); - -/** - * Diff two trees - * - * Compare two trees. For each difference in the trees, the callback - * will be called with a git_tree_diff_data filled with the relevant - * information. - * - * @param old the "old" tree - * @param newer the "newer" tree - * @param cb callback - * @param data data to give to the callback - * @return GIT_SUCCESS or an error code - */ -GIT_EXTERN(int) git_tree_diff(git_tree *old, git_tree *newer, git_tree_diff_cb cb, void *data); - -GIT_EXTERN(int) git_tree_diff_index_recursive(git_tree *tree, git_index *index, git_tree_diff_cb cb, void *data); - /** @} */ GIT_END_DECL |