| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1272,13 +1272,13 @@ def remove( | |||
| 1272 | 1272 | def deinit(self, force: bool = False) -> "Submodule": | |
| 1273 | 1273 | """Run ``git submodule deinit`` on this submodule. | |
| 1274 | 1274 | ||
| 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. | ||
| 1282 | 1282 | ||
| 1283 | 1283 | :param force: | |
| 1284 | 1284 | If ``True``, pass ``--force`` to ``git submodule deinit``. This | |
| Back | FazBrowse Home | New Git URL |
0 commit comments