Skip to content

unified diff parser in unified-diff-parser branch parsing issues #46

Description

@uwesimm

hi

a unified diff such as the one below is not parsed properly. i do see that the parse complete however the fromFile gets updated with the content of the line '---' out of the line fragments. essentially the fromFile is "some comment" after the parse.

--- a.vhd	2019-04-18 13:49:39.516149751 +0200
+++ b.vhd	2019-04-18 11:33:08.372563078 +0200
@@ -2819,3 +2819,3 @@
--- some comment
-bla
-bla
+
+

read the above unified patch into using

  val diff = UnifiedDiffReader.parseUnifiedDiff(diff_file)

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions