-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delta should be aware of diff.noprefix option (truncated filenames) #120
Comments
Thanks @wookayin, I agree. Sorry for being slow, I missed the notification here. This sounds like it should be an easy change. |
dandavison
added a commit
that referenced
this issue
Apr 17, 2020
Merged
dandavison
added a commit
that referenced
this issue
Apr 17, 2020
That should be fixed in master. If a user has |
Thanks! Yeah, I can imagine the corner case but should be fine for the most cases. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
diff.noprefix
option (e.g.git config diff.noprefix true
) would strip away prefixes such asa/
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
)Actual behavior:
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.
The text was updated successfully, but these errors were encountered: