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

Function Walker_push

src/walker.c:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 "Mark a commit to start traversal from.");
75
76PyObject *
77Walker_push(Walker *self, PyObject *py_hex)
78{
79 int err;
80 git_oid oid;
81
82 err = py_oid_to_git_oid_expand(self->repo->repo, py_hex, &oid);
83 if (err < 0)
84 return NULL;
85
86 err = git_revwalk_push(self->walk, &oid);
87 if (err < 0)
88 return Error_set(err);
89
90 Py_RETURN_NONE;
91}
92
93
94PyDoc_STRVAR(Walker_sort__doc__,

Callers

nothing calls this directly

Calls 2

py_oid_to_git_oid_expandFunction · 0.85
Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…