Just like "git submodule init", this copies information about the submodule into ".git/config". Parameters: overwrite By default, existing submodule entries will not be overwritten, but setting this to True forces them to be updated.
(self, overwrite: bool = False)
| 69 | return self._repo._from_c(crepo[0], True) # type: ignore[attr-defined] |
| 70 | |
| 71 | def init(self, overwrite: bool = False) -> None: |
| 72 | """ |
| 73 | Just like "git submodule init", this copies information about the submodule |
| 74 | into ".git/config". |
| 75 | |
| 76 | Parameters: |
| 77 | |
| 78 | overwrite |
| 79 | By default, existing submodule entries will not be overwritten, |
| 80 | but setting this to True forces them to be updated. |
| 81 | """ |
| 82 | err = C.git_submodule_init(self._subm, int(overwrite)) |
| 83 | check_error(err) |
| 84 | |
| 85 | def update( |
| 86 | self, |