Skip to content
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

Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails #20

Open
GoogleCodeExporter opened this issue Feb 27, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create patch:
   diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt
2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java to 
diffutils/
3. Run JUnit on EmptyContextUnifiedDiffTest

What is the expected output? What do you see instead?

testUnifiedContextInsert shouldn't fail.

What version of the product are you using? On what operating system?
diffutils-1.2.1.jar
diff (GNU diffutils) 3.0
Ubuntu 10.10

I have included a patch to fix this issue.


Original issue reported on code.google.com by [email protected] on 15 Jun 2011 at 8:40

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant