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

Function Branch_branch_name__get__

src/branch.c:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 "The name of the local or remote branch.");
136
137PyObject *
138Branch_branch_name__get__(Branch *self)
139{
140 int err;
141 const char *c_name;
142
143 CHECK_REFERENCE(self);
144
145 err = git_branch_name(&c_name, self->reference);
146 if (err == GIT_OK)
147 return to_unicode(c_name, NULL, NULL);
148 else
149 return Error_set(err);
150}
151
152PyDoc_STRVAR(Branch_raw_branch_name__doc__,
153 "The name of the local or remote branch (bytes).");

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…