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

Method reload

pygit2/submodules.py:123–136  ·  view source on GitHub ↗

Reread submodule info from config, index, and HEAD. Call this to reread cached submodule information for this submodule if you have reason to believe that it has changed. Parameters: force Force reload even if the data doesn't seem out of date

(self, force: bool = False)

Source from the content-addressed store, hash-verified

121 payload.check_error(err)
122
123 def reload(self, force: bool = False) -> None:
124 """
125 Reread submodule info from config, index, and HEAD.
126
127 Call this to reread cached submodule information for this submodule if
128 you have reason to believe that it has changed.
129
130 Parameters:
131
132 force
133 Force reload even if the data doesn't seem out of date
134 """
135 err = C.git_submodule_reload(self._subm, int(force))
136 check_error(err)
137
138 @property
139 def name(self):

Callers 1

test_submodule_reloadFunction · 0.80

Calls 1

check_errorFunction · 0.85

Tested by 1

test_submodule_reloadFunction · 0.64