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

Method ident

pygit2/repository.py:1581–1588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1579 #
1580 @property
1581 def ident(self) -> tuple[Optional[str], Optional[str]]:
1582 cname = ffi.new('char **')
1583 cemail = ffi.new('char **')
1584
1585 err = C.git_repository_ident(cname, cemail, self._repo)
1586 check_error(err)
1587
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.

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
maybe_stringFunction · 0.85

Tested by

no test coverage detected