dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.32k stars 358 forks source link

Implement --diff-args #1697

Open dandavison opened 1 month ago

dandavison commented 1 month ago

Allow extra arguments to git diff to be passed from the delta commands line, as suggested by @calestyo in https://github.com/dandavison/delta/issues/1644#issuecomment-1974396731

E.g.

delta --diff-args=-U99 /tmp/a /tmp/b
delta -@=-U99 /tmp/a /tmp/b

Note that the = is required in this case, due to the - that comes next.