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.