Get the status of a submodule. Returns: A combination of SubmoduleStatus flags. Parameters: name Submodule name or path. ignore A SubmoduleIgnore value indicating how deeply to examine the working directory.
(
self, name: str, ignore: SubmoduleIgnore = SubmoduleIgnore.UNSPECIFIED
)
| 346 | submodule.update(init, callbacks, depth) |
| 347 | |
| 348 | def status( |
| 349 | self, name: str, ignore: SubmoduleIgnore = SubmoduleIgnore.UNSPECIFIED |
| 350 | ) -> SubmoduleStatus: |
| 351 | """ |
| 352 | Get the status of a submodule. |
| 353 | |
| 354 | Returns: A combination of SubmoduleStatus flags. |
| 355 | |
| 356 | Parameters: |
| 357 | |
| 358 | name |
| 359 | Submodule name or path. |
| 360 | |
| 361 | ignore |
| 362 | A SubmoduleIgnore value indicating how deeply to examine the working directory. |
| 363 | """ |
| 364 | cstatus = ffi.new('unsigned int *') |
| 365 | err = C.git_submodule_status( |
| 366 | cstatus, self._repository._repo, to_bytes(name), ignore |
| 367 | ) |
| 368 | check_error(err) |
| 369 | return SubmoduleStatus(cstatus[0]) |
| 370 | |
| 371 | def cache_all(self) -> None: |
| 372 | """ |