0

I have a top repository which contains some git submodules. I can do a git diff on it with:

git diff d1e92 ade34

That only shows that there are some hashes changed in the submodule, but not the changes in the submodule itself.

I found that:

git diff --submodule=diff d1e92 ade34

which works as expected and shows also the real diff inside the submodules.

Now I want to do the same with git difftool but I don't find any syntax which gives me the expected result.

If I simply use

git difftool -d --submodule=diff d1e92 ade34

I only see the changed hashes but not the changed content of the submodules.

I want to see all changes from the main repo with all submodules. The other question asks only for diffing in a submodule. My questiion is not a duplicate of Git Directory Diff does not work in my submodule because it is exactly the opposite action I want to do!

Klaus
  • 22,956
  • 6
  • 52
  • 102
  • @phd: It is exactly the oposite of my question. I want to see the changes from the main repo includingthe subrepos. Your linked question is about diffing inside the subrepos. So it is *not* a duplicate of that one. – Klaus Jul 03 '18 at 13:11
  • I wonder if you could get what you want using a shell script that calls `git diff` on the main repo and then `git submodule foreach ...` to call `git diff` on all your submodules? – larsks Jul 03 '18 at 13:20
  • @larsks: foreach on submodules will not help because it will open a new instance of meld for every subdirectory and most important: It can not diff between the given hash values as they are not part of the submodules but of the main one. – Klaus Jul 03 '18 at 13:23

0 Answers0