summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-11-02 10:00:28 -0700
committerVicent Martí <vicent@github.com>2012-11-02 10:00:28 -0700
commit1362a983165abb5e85e66c2b0474157ba697966a (patch)
tree2dcd99e991224a26eb860d36151405219ff202bd /src/diff.h
parent473a7a1e70d05ec125309304d56f060c3e3ad40e (diff)
parentdb106d01f093b3e61170e3738d6651a2866cb76e (diff)
downloadlibgit2-1362a983165abb5e85e66c2b0474157ba697966a.tar.gz
Merge pull request #1014 from arrbee/diff-rename-detection
Initial implementation of diff rename detection
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
index c6a26aee7..ed66439bf 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -28,6 +28,9 @@ enum {
GIT_DIFFCAPS_USE_DEV = (1 << 4), /* use st_dev? */
};
+#define GIT_DELTA__TO_DELETE 10
+#define GIT_DELTA__TO_SPLIT 11
+
struct git_diff_list {
git_refcount rc;
git_repository *repo;
@@ -45,6 +48,8 @@ extern void git_diff__cleanup_modes(
extern void git_diff_list_addref(git_diff_list *diff);
+extern int git_diff_delta__cmp(const void *a, const void *b);
+
extern bool git_diff_delta__should_skip(
const git_diff_options *opts, const git_diff_delta *delta);