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

Function Repository_path_is_ignored

src/repository.c:361–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 "Check if a path is ignored in the repository.");
360
361PyObject *
362Repository_path_is_ignored(Repository *self, PyObject *args)
363{
364 int ignored;
365 char *path;
366
367 if (!PyArg_ParseTuple(args, "s", &path))
368 return NULL;
369
370 git_ignore_path_is_ignored(&ignored, self->repo, path);
371 if (ignored == 1)
372 Py_RETURN_TRUE;
373
374 Py_RETURN_FALSE;
375}
376
377
378PyDoc_STRVAR(Repository_revparse_single__doc__,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…