Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-24 02:06:07 +0400
committerRussell Belfer <rb@github.com>2013-05-24 02:06:07 +0400
commit67db583dabf6e154037302a24b7f79028f403454 (patch)
tree9a1b9e3a5b5c0fed5991a3894dd827e83c5d6e0a /src/diff.h
parentc68b09dc7ab782eeec9a9c59d66d8be31aed67f1 (diff)
More diff rename tests; better split swap handling
This adds a couple more tests of different rename scenarios. Also, this fixes a problem with the case where you have two "split" deltas and the left half of one matches the right half of the other. That case was already being handled, but in the wrong order in a way that could result in bad output. Also, if the swap also happened to put the other two halves into the correct place (i.e. two files exchanged places with each other), then the second delta was left with the SPLIT flag set when it really should be cleared.
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
index a9a543ecd..ac8ab2aed 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -44,6 +44,8 @@ enum {
#define GIT_DIFF_FLAG__CLEAR_INTERNAL(F) (F) = ((F) & 0x00FFFF)
+#define GIT_DIFF__VERBOSE (1 << 30)
+
struct git_diff_list {
git_refcount rc;
git_repository *repo;