File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1272,13 +1272,13 @@ def remove(
12721272 def deinit (self , force : bool = False ) -> "Submodule" :
12731273 """Run ``git submodule deinit`` on this submodule.
12741274
1275- This is a thin wrapper around ``git submodule deinit <path>``, paralleling
1276- :meth:`add`, :meth:`update`, and :meth:`remove`. It unregisters the
1277- submodule (removes its entry from ``.git/config`` and empties the
1278- working-tree directory) without deleting the submodule from
1279- ``.gitmodules`` or its checked-out repository under ``.git/modules/``.
1280- A subsequent :meth:`update` will re-initialize the submodule from the
1281- retained contents.
1275+ This is a thin wrapper around ``git submodule deinit <path>``,
1276+ which unregisters the submodule (removes its entry from
1277+ ``.git/config`` and empties the working-tree directory)
1278+ without deleting the submodule from ``.gitmodules``
1279+ or its checked-out repository under ``.git/modules/``.
1280+ A subsequent :meth:`update` will re-initialize the
1281+ submodule from the retained contents.
12821282
12831283 :param force:
12841284 If ``True``, pass ``--force`` to ``git submodule deinit``. This
You can’t perform that action at this time.
0 commit comments