Skip to content

🚀 --file-transformation could be applied to --color-only mode #2040

@stdedos

Description

@stdedos

Usecase: I want to get rid of the a/, b/ markers in the git add -p hunk (as it is always an ordeal to copy the file path and navigate to it).

There is no git configuration option for that (https://git-scm.com/docs/git-config#Documentation/git-config.txt-diffnoPrefix applies ONLY to diff - even https://git-scm.com/docs/git-config#Documentation/git-config.txt-formatnoprefix has its own)

I have tried to try and convince delta to mimic the --color-only mode (and hence apply git -c delta.file-transformation='s|^a/||; s|^b/||' ... myself), but I cannot find the right knobs.

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