git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] Avoid submodule overwritten and skip redundant active entries
@ 2025-05-24  7:36 K Jayatheerth
  2025-05-24  7:36 ` [PATCH v7 1/2] submodule: prevent overwriting .gitmodules entry on path reuse K Jayatheerth
  2025-05-24  7:36 ` [PATCH v7 2/2] submodule: skip redundant active entries when pattern covers path K Jayatheerth
  0 siblings, 2 replies; 19+ messages in thread
From: K Jayatheerth @ 2025-05-24  7:36 UTC (permalink / raw)
  To: git; +Cc: gitster, K Jayatheerth

This series of patch covers mainly two areas

1. The bug report where after submodule was moved and the path remained same
   when a new submodule was added then it directly was overwriting the 
   moved submodule as the present submodule since the path matched.

2. The configure_added_submodule was writing submodule.<name>.active
   entry, even when the new path is already matched by submodule.active
   patterns.

Below is a helper function and 2 new tests with fixes of the above problem.


K Jayatheerth (2):
  submodule: prevent overwriting .gitmodules entry on path reuse
  submodule: skip redundant active entries when pattern covers path

 builtin/submodule--helper.c    | 60 +++++++++++++++++++++++++++-------
 t/t7400-submodule-basic.sh     | 23 +++++++++++++
 t/t7413-submodule-is-active.sh | 15 +++++++++
 3 files changed, 87 insertions(+), 11 deletions(-)

-- 
2.49.GIT


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

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

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-24  7:36 [PATCH v7 0/2] Avoid submodule overwritten and skip redundant active entries K Jayatheerth
2025-05-24  7:36 ` [PATCH v7 1/2] submodule: prevent overwriting .gitmodules entry on path reuse K Jayatheerth
2025-05-27 14:01   ` Junio C Hamano
2025-05-24  7:36 ` [PATCH v7 2/2] submodule: skip redundant active entries when pattern covers path K Jayatheerth
2025-05-27 14:42   ` Junio C Hamano
2025-05-29  4:23     ` JAYATHEERTH K
2025-06-04  4:22       ` Junio C Hamano
2025-06-06 14:41         ` JAYATHEERTH K
2025-06-08  3:27           ` [PATCH v8 0/2] Avoid submodule overwritten and skip redundant active entries K Jayatheerth
2025-06-08  3:27             ` [PATCH v8 1/2] submodule: prevent overwriting .gitmodules entry on path reuse K Jayatheerth
2025-07-09  2:50               ` D. Ben Knoble
2025-07-20 12:25                 ` JAYATHEERTH K
2025-07-25 17:28                   ` Ben Knoble
2025-06-08  3:27             ` [PATCH v8 2/2] submodule: skip redundant active entries when pattern covers path K Jayatheerth
2025-07-09  2:50               ` D. Ben Knoble
2025-07-09 14:52                 ` Junio C Hamano
2025-07-17 16:58               ` Junio C Hamano
2025-07-18 14:24                 ` JAYATHEERTH K
2025-07-07 22:34             ` [PATCH v8 0/2] Avoid submodule overwritten and skip redundant active entries Junio C Hamano

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).