Skip to content

Commit 4f7132a

Browse files
committed
Merge branch 'sb/submodule-rm-absorb' into maint
Doc update to a recently graduated topic. * sb/submodule-rm-absorb: Documentation/git-rm: correct submodule description
2 parents b960cd3 + 68602c0 commit 4f7132a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/git-rm.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@ Only submodules using a gitfile (which means they were cloned
140140
with a Git version 1.7.8 or newer) will be removed from the work
141141
tree, as their repository lives inside the .git directory of the
142142
superproject. If a submodule (or one of those nested inside it)
143-
still uses a .git directory, `git rm` will fail - no matter if forced
144-
or not - to protect the submodule's history. If it exists the
145-
submodule.<name> section in the linkgit:gitmodules[5] file will also
146-
be removed and that file will be staged (unless --cached or -n are used).
143+
still uses a .git directory, `git rm` will move the submodules
144+
git directory into the superprojects git directory to protect
145+
the submodule's history. If it exists the submodule.<name> section
146+
in the linkgit:gitmodules[5] file will also be removed and that file
147+
will be staged (unless --cached or -n are used).
147148

148149
A submodule is considered up-to-date when the HEAD is the same as
149150
recorded in the index, no tracked files are modified and no untracked

0 commit comments

Comments
 (0)