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

[PATCH 0/2] Re: git diff --submodule=diff fails with submodules in a submodule

From
Stefan Beller <sbeller@google.com>
Date
Mar 31, 2017, 23:17 UTC
Message-ID
<20170331231733.11123-1-sbeller@google.com>

I came up with a patch that fixes the issue locally. (It is the first patch, such that we can track the first patch down to maint)

While doing so, I noticed 2 issues:
* when having nested submodules, we probably want to have --submodule=diff
  to recurse into the nested submodules, so pass on the option.
  (2nd patch)
* the tests in t4060 hardcode hashes literally. I do not have a patch for that
  yet, but I will send patches later. (c.f. "sanitize_output" in t4202)
  
Thanks,
Stefan
Stefan Beller (2):
  diff: submodule inline diff to initialize env array.
  diff: recurse into nested submodules for inline diff
 submodule.c                                  |  4 +-
 t/t4060-diff-submodule-option-diff-format.sh | 70 ++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+), 1 deletion(-)
-- 
2.12.2.576.g7be6e4ba40.dirty
Next: Stefan Beller
Message 1 of 3 in “Re: git diff --submodule=diff fails with submodules in a submodule”
  1. 0/2 Re: git diff --submodule=diff fails with submodules in a submoduleStefan Beller, Mar 31, 2017
  2. 1/2 diff: submodule inline diff to initialize env array.Stefan Beller, Mar 31, 2017
  3. 2/2 diff: recurse into nested submodules for inline diffStefan Beller, Mar 31, 2017

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.