From 65b09b1deddec64fa5639e9fea10c048d31901fa Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Thu, 2 Feb 2012 18:03:43 -0800 Subject: Implement diff lists and formatters This reworks the diff API to separate the steps of producing a diff descriptions from formatting the diff. This will allow us to share diff output code with the various diff creation scenarios and will allow us to implement rename detection as an optional pass that can be run on a diff list. --- include/git2/tree.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/git2/tree.h') diff --git a/include/git2/tree.h b/include/git2/tree.h index 95e0fdf9..c338da09 100644 --- a/include/git2/tree.h +++ b/include/git2/tree.h @@ -316,9 +316,14 @@ GIT_EXTERN(int) git_tree_walk(git_tree *tree, git_treewalk_cb callback, int mode /** @} */ typedef enum { + GIT_STATUS_UNMODIFIED = 0, GIT_STATUS_ADDED = 1, GIT_STATUS_DELETED = 2, GIT_STATUS_MODIFIED = 3, + GIT_STATUS_RENAMED = 4, + GIT_STATUS_COPIED = 5, + GIT_STATUS_IGNORED = 6, + GIT_STATUS_UNTRACKED = 7 } git_status_t; typedef struct { -- cgit v1.2.1