summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-02-27 14:50:32 -0800
committerVicent Martí <vicent@github.com>2013-02-27 14:50:32 -0800
commite68e33f33d98c171d31dac33257250b5ecded4c9 (patch)
tree527f7c1f05dfd0427a82410a0a51c39fa6a33044 /src/diff.h
parent9f9477d650c33eddad9cb48c5ec84cd703300c16 (diff)
parent1be4ba984216dfcb1f07945240c2831395fd0460 (diff)
downloadlibgit2-e68e33f33d98c171d31dac33257250b5ecded4c9.tar.gz
Merge pull request #1233 from arrbee/file-similarity-metric
Add file similarity scoring to diff rename/copy detection
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/diff.h b/src/diff.h
index 16fbf71e6..8e3cbcd46 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -28,8 +28,14 @@ enum {
GIT_DIFFCAPS_USE_DEV = (1 << 4), /* use st_dev? */
};
-#define GIT_DELTA__TO_DELETE 10
-#define GIT_DELTA__TO_SPLIT 11
+enum {
+ GIT_DIFF_FLAG__FREE_PATH = (1 << 7), /* `path` is allocated memory */
+ GIT_DIFF_FLAG__FREE_DATA = (1 << 8), /* internal file data is allocated */
+ GIT_DIFF_FLAG__UNMAP_DATA = (1 << 9), /* internal file data is mmap'ed */
+ GIT_DIFF_FLAG__NO_DATA = (1 << 10), /* file data should not be loaded */
+ GIT_DIFF_FLAG__TO_DELETE = (1 << 11), /* delete entry during rename det. */
+ GIT_DIFF_FLAG__TO_SPLIT = (1 << 12), /* split entry during rename det. */
+};
struct git_diff_list {
git_refcount rc;