Skip to content

Avoid submodule overwritten and skip redundant active entries

K Jayatheerth git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Changes from the cover letter

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.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2submodule: prevent overwriting .gitmodules on path reuseDocumentation/git-submodule.adoc builtin/submodule--helper.c t/t7400-submodule-basic.sh+56 -01 reply
1/2submodule: prevent overwriting .gitmodules on path reuseDocumentation/git-submodule.adoc builtin/submodule--helper.c t/t7400-submodule-basic.sh+55 -00 replies
2/2submodule: skip redundant active entries when pattern covers pathbuiltin/submodule--helper.c t/t7413-submodule-is-active.sh+34 -61 reply
2/2submodule: skip redundant active entries when pattern covers pathbuiltin/submodule--helper.c t/t7413-submodule-is-active.sh+33 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.50.GIT