twosigma / git-meta

Repository for the git-meta project -- build your own monorepo using Git submodules
http://twosigma.github.io/git-meta
BSD 3-Clause "New" or "Revised" License
216 stars 50 forks source link

git meta diff should understand --word-diff #616

Open georgyo opened 6 years ago

georgyo commented 6 years ago

git diff --word-diff is very useful for figuring out change code changes when a lot of white space changes have occurred, such has re/de-indenting blocks of code.

git meta diff --word-diff does not error but also does not pass the argument down argument down to the individual git diff commands.

git meta should likely pass all arguments of after the diff to the individual git diffs

tsuikevi-twosigma commented 3 years ago

Took a quick look at this and just wanted to share my findings. The way git meta diff is implemented is that we just end up calling git diff --submodule=diff. If the --word-diff argument is added it is actually passed to the individual call to git diff but it seems like git ignores the argument when used in conjunction with --submodule=diff.