Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Parsing error when viewing file under conflict in diff view #600

Description

@kuychaco

Normally it's not possible to view a file under conflict in the diff view. However, if you have a diff view open and undo the last discard made and this action results in merge conflicts, the diff view remains open and the following error from what-the-diff appears "Expected "@@ -" or "@@@ -" but end of input found."

This is because what-the-diff is not equipped to parse diffs for files under conflict, and really we don't want to be doing this anyway. Instead we should detect if the file being displayed in the diff view is under conflict, and if it is, rather than display the diff we should display a message saying the file is under conflict, perhaps with a button to open the file and view the conflicts.

Versions

GitHub Package Version (git --git-dir ~/.atom/packages/github/.git rev-parse head): 45e4e18

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions