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

[PATCH 0/2] Avoid submodule overwritten and skip redundant active entries

From
K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Date
Jul 24, 2025, 15:24 UTC
Message-ID
<20250724152418.45226-1-jayatheerthkulkarni2005@gmail.com>
Changes:
1. Readded the comment so the patch now shows no added lines at the comments it's 
just the previous one (As clean as I could do it).            
/*
 * If the submodule being added isn't already covered by the
 * current configured pathspec, set the submodule's active flag
*/
2. Instead of ! git config I now use test_must_fail
3. For --force used the same logic the incremental logic.
4. I also updated the docs for --force.
5. Removed the white spaces from the lines.
K Jayatheerth (2):
  submodule: prevent overwriting .gitmodules on path reuse
  submodule: skip redundant active entries when pattern covers path
 Documentation/git-submodule.adoc |  7 +++++
 builtin/submodule--helper.c      | 52 ++++++++++++++++++++++++++++----
 t/t7400-submodule-basic.sh       | 22 ++++++++++++++
 t/t7413-submodule-is-active.sh   | 15 +++++++++
 4 files changed, 90 insertions(+), 6 deletions(-)
-- 
2.50.GIT
Next: K Jayatheerth
Message 1 of 8 in “Avoid submodule overwritten and skip redundant active entries”
  1. 0/2 Avoid submodule overwritten and skip redundant active entriesK Jayatheerth, Jul 24, 2025
  2. 1/2 submodule: prevent overwriting .gitmodules on path reuseK Jayatheerth, Jul 24, 2025
  3. Junio C HamanoJul 24, 2025
  4. 2/2 submodule: skip redundant active entries when pattern covers pathK Jayatheerth, Jul 24, 2025
  5. Junio C HamanoJul 24, 2025
  6. 0/2 Avoid submodule overwritten and skip redundant active entriesK Jayatheerth, Jul 25, 2025
  7. 1/2 submodule: prevent overwriting .gitmodules on path reuseK Jayatheerth, Jul 25, 2025
  8. 2/2 submodule: skip redundant active entries when pattern covers pathK Jayatheerth, Jul 25, 2025

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.