MCPcopy Create free account
hub / github.com/libgit2/pygit2 / status

Method status

pygit2/submodules.py:348–369  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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 """

Callers 15

test_init_and_updateFunction · 0.80
test_oneshot_updateFunction · 0.80
test_add_submoduleFunction · 0.80
test_submodule_statusFunction · 0.80
test_checkout_refFunction · 0.80
test_checkout_branchFunction · 0.80
test_checkout_indexFunction · 0.80

Calls 3

to_bytesFunction · 0.85
check_errorFunction · 0.85
SubmoduleStatusClass · 0.85

Tested by 15

test_init_and_updateFunction · 0.64
test_oneshot_updateFunction · 0.64
test_add_submoduleFunction · 0.64
test_submodule_statusFunction · 0.64
test_checkout_refFunction · 0.64
test_checkout_branchFunction · 0.64
test_checkout_indexFunction · 0.64