Skip to content

Delta should be aware of diff.noprefix option (truncated filenames) #120

@wookayin

Description

@wookayin

The diff.noprefix option (e.g. git config diff.noprefix true) would strip away prefixes such as a/ b/. When this option is enabled, the first two characters of filename would be stripped away even though they are a part of normal filenames.

Expected output: (without diff.noprefix)

package/filename.py
────────────────────────────────────────
...

Actual behavior:

ckage/filename.py
────────────────────────────────────────
...

Tested on 0.0.17.

Although we could configure so that this option is turned off when using delta as pager, delta should be aware of this option and strip prefixes only if the first two letters are git prefixes.

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