git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Avoid submodule overwritten and skip redundant active entries
@ 2025-07-24 15:24 K Jayatheerth
  2025-07-24 15:24 ` [PATCH 1/2] submodule: prevent overwriting .gitmodules on path reuse K Jayatheerth
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: K Jayatheerth @ 2025-07-24 15:24 UTC (permalink / raw)
  To: git; +Cc: K Jayatheerth

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-07-25 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 15:24 [PATCH 0/2] Avoid submodule overwritten and skip redundant active entries K Jayatheerth
2025-07-24 15:24 ` [PATCH 1/2] submodule: prevent overwriting .gitmodules on path reuse K Jayatheerth
2025-07-24 20:53   ` Junio C Hamano
2025-07-24 15:24 ` [PATCH 2/2] submodule: skip redundant active entries when pattern covers path K Jayatheerth
2025-07-24 21:21   ` Junio C Hamano
2025-07-25 16:24 ` [PATCH 0/2] Avoid submodule overwritten and skip redundant active entries K Jayatheerth
2025-07-25 16:24   ` [PATCH 1/2] submodule: prevent overwriting .gitmodules on path reuse K Jayatheerth
2025-07-25 16:24   ` [PATCH 2/2] submodule: skip redundant active entries when pattern covers path K Jayatheerth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).