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

Function reference_is_valid_name

src/pygit2.c:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 "\n"
238 "Check if the passed string is a valid reference name.");
239PyObject *
240reference_is_valid_name(PyObject *self, PyObject *py_refname)
241{
242 const char *refname = pgit_borrow(py_refname);
243 if (refname == NULL)
244 return NULL;
245
246 int result = git_reference_is_valid_name(refname);
247 return PyBool_FromLong(result);
248}
249
250
251PyDoc_STRVAR(tree_entry_cmp__doc__,

Calls 1

pgit_borrowFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…