webdiff icon indicating copy to clipboard operation
webdiff copied to clipboard

Make it easier to pass dirdiff args for one invocation

Open danvk opened this issue 7 months ago • 0 comments

For a recent diff, I wanted git webdiff to be more aggressive about finding rename + change. git diff supports this via -M2 which only requires 20% overlap for a delete/add pair to count as a move.

The only way I could find to pass this to webdiff was to add this to my .gitconfig:

[webdiff]
  extraDirDiffArgs = "-M2"

It would be nice if there were an environment variable or command-line flag I could pass to set this for a single invocation.

danvk avatar Jul 22 '25 13:07 danvk