Skip to content

Support diff.colorMoved #1972

Description

@nihaals

Is your feature request related to a problem? Please describe.

I want to be able to identify moved sections of code more easily in diffs. Git has diff.colorMoved/--color-moved which helps, but Neogit strips this.

Describe the solution you'd like

If diff.colorMoved is set in your Git config, these colors should be shown in diffs e.g. the staged/unstaged views on the main NeogitStatus page.

The colors should also be sent to log_pager so it can use them. For example, delta can parse the colors and preserve them, but using delta as your log_pager acts as if diff.colorMoved is not set because Neogit strips the colors before passing it to log_pager.

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