From 67db583dabf6e154037302a24b7f79028f403454 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Thu, 23 May 2013 15:06:07 -0700 Subject: 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. --- tests-clar/diff/diff_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests-clar/diff/diff_helpers.h') diff --git a/tests-clar/diff/diff_helpers.h b/tests-clar/diff/diff_helpers.h index b39a69d1d..bb76d0076 100644 --- a/tests-clar/diff/diff_helpers.h +++ b/tests-clar/diff/diff_helpers.h @@ -65,4 +65,4 @@ extern int diff_foreach_via_iterator( void *data); extern void diff_print(FILE *fp, git_diff_list *diff); - +extern void diff_print_raw(FILE *fp, git_diff_list *diff); -- cgit v1.2.1