summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-09-28 13:40:02 -0700
committerRussell Belfer <rb@github.com>2012-10-09 11:54:01 -0700
commitbc16fd3ebf8727900f2b8c2f44cb14fd03f80bcc (patch)
treea2038177ca25685b108d768e9cabf0ed57d85963 /include/git2/diff.h
parentfade21db0a7a1d535b6352943ecd7b5ae6841e57 (diff)
downloadlibgit2-bc16fd3ebf8727900f2b8c2f44cb14fd03f80bcc.tar.gz
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.
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h4
1 files changed, 3 insertions, 1 deletions
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;
/**