Skip to content

Highlight diffs when there is unrecognised initial content #121

@dandavison

Description

@dandavison

cc @m-lima @gibfahn Currently, if delta doesn't recognize the type of diff from the first line, it gives up on parsing. I'm aware of two situations where this is too strict:

  1. Magit makes calls like git show -p --cc --format= --numstat --stat. This results in the numstat and stat output appearing before the diff, and the diff is not highlighted as a result. (I'm making it possible to use delta as a diff rendering plugin for magit.)

  2. In Support git stash show --stat --patch #100 delta does not render git stash show --stat --patch correctly for the same reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions