MCPcopy Create free account
hub / github.com/git/git / chk_hit_marker

Function chk_hit_marker

grep.c:1819–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1817}
1818
1819static int chk_hit_marker(struct grep_expr *x)
1820{
1821 /* Top level nodes have hit markers. See if they all are hits */
1822 while (1) {
1823 if (x->node != GREP_NODE_OR)
1824 return x->hit;
1825 if (!x->u.binary.left->hit)
1826 return 0;
1827 x = x->u.binary.right;
1828 }
1829}
1830
1831int grep_source(struct grep_opt *opt, struct grep_source *gs)
1832{

Callers 1

grep_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected