diff options
author | Edward Thomson <ethomson@github.com> | 2016-04-26 01:18:01 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-06-25 23:08:30 -0400 |
commit | 1a79cd959ba2991dd3295f9940b28b606e494ccf (patch) | |
tree | e89b79913d4b3c8f95cb59858a227191e1d27bdf /tests/diff/parse.c | |
parent | 9eb19381348bca66eedc4d2e541448443311007a (diff) | |
download | libgit2-1a79cd959ba2991dd3295f9940b28b606e494ccf.tar.gz |
patch: show copy information for identical copies
When showing copy information because we are duplicating contents,
for example, when performing a `diff --find-copies-harder -M100 -B100`,
then show copy from/to lines in a patch, and do not show context.
Ensure that we can also parse such patches.
Diffstat (limited to 'tests/diff/parse.c')
-rw-r--r-- | tests/diff/parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/diff/parse.c b/tests/diff/parse.c index 56b98903b..83000a92d 100644 --- a/tests/diff/parse.c +++ b/tests/diff/parse.c @@ -143,6 +143,11 @@ void test_diff_parse__can_parse_generated_diff(void) "31e47d8c1fa36d7f8d537b96158e3f024de0a9f2", "2bc7f351d20b53f1c72c16c4b036e491c478c49a", GIT_DIFF_INCLUDE_UNMODIFIED, + 0); + 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); } |