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

Method set_ident

pygit2/repository.py:1590–1599  ·  view source on GitHub ↗

Set the identity to be used for reference operations. Updates to some references also append data to their reflog. You can use this method to set what identity will be used. If none is set, it will be read from the configuration.

(self, name: Optional[str], email: Optional[str])

Source from the content-addressed store, hash-verified

1588 return (maybe_string(cname[0]), maybe_string(cemail[0]))
1589
1590 def set_ident(self, name: Optional[str], email: Optional[str]) -> None:
1591 """Set the identity to be used for reference operations.
1592
1593 Updates to some references also append data to their
1594 reflog. You can use this method to set what identity will be
1595 used. If none is set, it will be read from the configuration.
1596 """
1597
1598 err = C.git_repository_set_ident(self._repo, to_bytes(name), to_bytes(email))
1599 check_error(err)
1600
1601 def revert(self, commit: Commit) -> None:
1602 """

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85