]> git.proxmox.com Git - libgit2.git/commit
Fix diff output for renames and copies
authorRussell Belfer <rb@github.com>
Fri, 10 May 2013 16:32:42 +0000 (09:32 -0700)
committerRussell Belfer <rb@github.com>
Fri, 10 May 2013 16:32:42 +0000 (09:32 -0700)
commite9ba61f399594b16b8168f87264b7794eebc6b3a
treea85bfda07988218da5a50fffee721119d92e2f5c
parentae59321fb86d080d0fd17e8c9a57c855914bcd32
Fix diff output for renames and copies

If you use rename detection, the renamed and copied files would
not show any text diffs because the function that decides if
data should be loaded didn't know which sides of the diff to
load for those cases.

This adds a test that looks at the patch generated for diff
entries that are COPIED or RENAMED.
src/diff_output.c
tests-clar/diff/rename.c