Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

issues when parsing git diff #79

Closed
@luyijingxiu

Description

@luyijingxiu

Describe the bug

  1. When parsing git diff like this
diff --git a/test/Issue.java b/test/Issue.javanew file mode 100644index 00000000..9702606e

UnifiedDiffReader will throw UnifiedDiffParserException: "expected file start line not found"
I have analyze the code and found thatnew file mode 100644 can't not be recognized. But I found regex that can recognized this line in comment of methodUnifiedDiffReader#parse()

// schema = [[/^\s+/, normal], [/^diff\s/, start], [**/^new file mode \d+$/**, new_file],

It seems that you intend not to recognize this, Could you please tell the reason?

  1. The java.util.logging.Logger in UnifiedDiffReader is kind of chatty, How should I turn it off.

  2. IsUnifiedDiffUtils.parseUnifiedDiff() designed to only parse the first patch?

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp