Ever needed to diff two trees of files, while doing some preprocessing on
modified files? Well - we've got a solution for you. Or rather... our long
friend git
has.
Turns out it's perfectly legal to just use git diff --no-index
on directories
outside of (any) git repository. With that, we can (ab-)use built in git diff
per-path/extension preprocessing feature.
Just dump attributes
and config
files into some/path/git/
directory, then
run git diff
like so:
XDG_CONFIG_HOME=$(realpath some/path) git diff --no-index /tmp/dir1 /tmp/dir2