git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bug: git difftool does not respect submodule argument

From
FRFredrik Reveny <fredrik@chetech.se>
Date
Mar 9, 2021, 08:01 UTC
Message-ID
<CAK9rnwaB2BJo-UVLkPd2cDVtvM7HnAjJg+Fcqm6JUt7g=fSeYQ@mail.gmail.com>

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

Message 1 of 1 in “bug: git difftool does not respect submodule argument”
  1. Fredrik RevenyMar 9, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.