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

Function Branch_raw_branch_name__get__

src/branch.c:155–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 "The name of the local or remote branch (bytes).");
154
155PyObject *
156Branch_raw_branch_name__get__(Branch *self)
157{
158 int err;
159 const char *c_name;
160
161 CHECK_REFERENCE(self);
162
163 err = git_branch_name(&c_name, self->reference);
164 if (err == GIT_OK)
165 return PyBytes_FromString(c_name);
166 else
167 return Error_set(err);
168}
169
170PyDoc_STRVAR(Branch_remote_name__doc__,
171 "Find the remote name of a remote-tracking branch.\n"

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…