Skip to content

Incorrect parsing of multi-word file paths #34

@jclem

Description

@jclem

The following is a valid git diff for a file that has whitespace in its path:

diff --git c/foo bar w/foo bar
new file mode 100644
index 0000000..e69de29

This package parses it as the following:

[
  {
    hunks: [],
    oldEndingNewLine: true,
    newEndingNewLine: true,
    oldPath: 'foo',
    newPath: 'r',
    newMode: '100644',
    oldRevision: '0000000',
    newRevision: 'e69de29',
    type: 'modify'
  }
]

Instead, oldPath and newPath should both be 'foo bar'.

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