From bc16fd3ebf8727900f2b8c2f44cb14fd03f80bcc Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Fri, 28 Sep 2012 13:40:02 -0700 Subject: Introduce status/diff TYPECHANGE flags When I wrote the diff code, I based it on core git's diff output which tends to split a type change into an add and a delete. But core git's status has the notion of a T (typechange) flag for a file. This introduces that into our status APIs and modifies the diff code so it can be forced to not split type changes. --- include/git2/diff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/git2/diff.h') diff --git a/include/git2/diff.h b/include/git2/diff.h index 121c40307..24556db73 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -49,6 +49,7 @@ enum { GIT_DIFF_DISABLE_PATHSPEC_MATCH = (1 << 11), GIT_DIFF_DELTAS_ARE_ICASE = (1 << 12), GIT_DIFF_INCLUDE_UNTRACKED_CONTENT = (1 << 13), + GIT_DIFF_DONT_SPLIT_TYPECHANGE = (1 << 14), }; /** @@ -116,7 +117,8 @@ typedef enum { GIT_DELTA_RENAMED = 4, GIT_DELTA_COPIED = 5, GIT_DELTA_IGNORED = 6, - GIT_DELTA_UNTRACKED = 7 + GIT_DELTA_UNTRACKED = 7, + GIT_DELTA_TYPECHANGE = 8, } git_delta_t; /** -- cgit v1.2.1