Skip to content

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

Description

@GoogleCodeExporter
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 jharj...@gmail.com on 15 Jun 2011 at 8:40

Attachments:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions