-
Notifications
You must be signed in to change notification settings - Fork 402
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
🐛 --file-transformation is applied to hunk header but not diff header #1010
Comments
dandavison
added a commit
that referenced
this issue
Mar 15, 2022
dandavison
changed the title
--file-transformation does not seem to do anything🐛
🐛 --file-transformation is applied to hunk header but not diff header
Mar 15, 2022
dandavison
added a commit
that referenced
this issue
Mar 15, 2022
Hi @salmankhilji, thanks -- you're right, there's a bug. It is currently applied to the file name in the hunk header, but not the "main" file name in the diff header. There was no good reason for that: I made the option for myself and I personally don't use the main diff header (my config is below)! I've pushed a fix in #1012 . file-style = omit blue
hunk-header-style = file line-number syntax |
dandavison
added a commit
that referenced
this issue
Mar 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--file-transformation
does not seem to do anything. Perhaps, I am not sure how to use it properly? Maybe, the fix is to elaborate with a working example within the documentation!Repro Steps
seq 5 >foo
seq 8 >bar
Run delta like this:
Observed Behavior
Observe the following within the header:
Expected Behavior
If the sed like expression worked, then I would expect to see:
Additional Context
#997
The text was updated successfully, but these errors were encountered: