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

Function Repository_default_signature__get__

src/repository.c:1902–1912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1900PyDoc_STRVAR(Repository_default_signature__doc__, "Return the signature according to the repository's configuration");
1901
1902PyObject *
1903Repository_default_signature__get__(Repository *self)
1904{
1905 git_signature *sig;
1906 int err;
1907
1908 if ((err = git_signature_default(&sig, self->repo)) < 0)
1909 return Error_set(err);
1910
1911 return build_signature(NULL, sig, "utf-8");
1912}
1913
1914PyDoc_STRVAR(Repository_odb__doc__, "Return the object database for this repository");
1915

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
build_signatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…