summaryrefslogtreecommitdiff
path: root/tests/diff/parse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-04-25 22:35:55 -0400
committerEdward Thomson <ethomson@github.com>2016-06-25 23:08:30 -0400
commit9eb19381348bca66eedc4d2e541448443311007a (patch)
treedfb77313e1ced07e7f8cef715e84b189a91e4ca2 /tests/diff/parse.c
parent8a670dc4c0a5e64986273f2c79d21afcefa38a05 (diff)
downloadlibgit2-9eb19381348bca66eedc4d2e541448443311007a.tar.gz
patch::parse: test diff with exact rename and copy
Diffstat (limited to 'tests/diff/parse.c')
-rw-r--r--tests/diff/parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/diff/parse.c b/tests/diff/parse.c
index 24d6a0192..56b98903b 100644
--- a/tests/diff/parse.c
+++ b/tests/diff/parse.c
@@ -139,5 +139,10 @@ void test_diff_parse__can_parse_generated_diff(void)
"31e47d8c1fa36d7f8d537b96158e3f024de0a9f2",
"2bc7f351d20b53f1c72c16c4b036e491c478c49a",
0, GIT_DIFF_FIND_RENAMES);
+ test_tree_to_tree_computed_to_parsed("renames",
+ "31e47d8c1fa36d7f8d537b96158e3f024de0a9f2",
+ "2bc7f351d20b53f1c72c16c4b036e491c478c49a",
+ GIT_DIFF_INCLUDE_UNMODIFIED,
+ GIT_DIFF_FIND_COPIES_FROM_UNMODIFIED | GIT_DIFF_FIND_EXACT_MATCH_ONLY);
}