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

Function iterator_get_next

src/refdb_backend.c:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70};
71
72static Reference *
73iterator_get_next(struct pygit2_refdb_iterator *iter)
74{
75 Reference *ref;
76 while ((ref = (Reference *)PyIter_Next(iter->iterator)) != NULL) {
77 if (!iter->glob) {
78 return ref;
79 }
80 const char *name = git_reference_name(ref->reference);
81 if (wildmatch(iter->glob, name, 0) != WM_NOMATCH) {
82 return ref;
83 }
84 }
85 return NULL;
86}
87
88static int
89pygit2_refdb_iterator_next(git_reference **out, git_reference_iterator *_iter)

Callers 2

Calls 1

wildmatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…