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

Function Branch_is_checked_out

src/branch.c:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 " False otherwise.");
89
90PyObject *
91Branch_is_checked_out(Branch *self)
92{
93 int err;
94
95 CHECK_REFERENCE(self);
96
97 err = git_branch_is_checked_out(self->reference);
98 if (err == 1)
99 Py_RETURN_TRUE;
100 else if (err == 0)
101 Py_RETURN_FALSE;
102 else
103 return Error_set(err);
104}
105
106
107PyDoc_STRVAR(Branch_rename__doc__,

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…