Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix diff output for renames and copies #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2013

Conversation

arrbee
Copy link
Member

@arrbee arrbee commented May 10, 2013

@ben discovered a bug when looking at text diffs after using rename detection. The function that decides if data should be loaded for a given delta didn't know which sides of the diff to load for those cases and defaulted to loading no data, so no text diffs were availble.

This fixes that bug and adds a test that looks at the patch generated for diff entries that are COPIED or RENAMED.

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.
@ben
Copy link
Member

ben commented May 10, 2013

❇️👍❇️

vmg pushed a commit that referenced this pull request May 10, 2013
Fix diff output for renames and copies
@vmg vmg merged commit c3a5171 into libgit2:development May 10, 2013
@arrbee arrbee deleted the diff-patch-with-rename branch November 22, 2013 08:27
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
Fix diff output for renames and copies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants