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

Method checkout_head

pygit2/repository.py:411–418  ·  view source on GitHub ↗

Checkout HEAD For arguments, see Repository.checkout().

(self, **kwargs)

Source from the content-addressed store, hash-verified

409 #
410
411 def checkout_head(self, **kwargs):
412 """Checkout HEAD
413
414 For arguments, see Repository.checkout().
415 """
416 with git_checkout_options(**kwargs) as payload:
417 err = C.git_checkout_head(self._repo, payload.checkout_options)
418 payload.check_error(err)
419
420 def checkout_index(self, index=None, **kwargs):
421 """Checkout the given index or the repository's index

Callers 1

checkoutMethod · 0.95

Calls 2

check_errorMethod · 0.80
git_checkout_optionsFunction · 0.70

Tested by

no test coverage detected