threads / bug / 55275

bug: git difftool does not respect submodule argument

Subject: bug: git difftool does not respect submodule argument

## tl;dr

One message between Mar 9, 2021 and Mar 9, 2021.

replies: 0people: 1as markdown or json

Fredrik Reveny· Mar 9, 2021, 08:01 UTC · lore

This repository is set up to reproduce the issue: git clone --recurse-submodules https://github.com/Chetic/super.git

The following command behaves as expected and produces a diff to files in submodules: git diff --submodule=diff HEAD~1 HEAD

But the following command produces a diff of commit IDs referred to by the super repository, i.e. same behavior as without the "--submodule=diff" argument. I expected this to behave like the command above but displayed with an external diff tool: git difftool --submodule=diff HEAD~1 HEAD

← back to recent threads