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

Function clr_hit_marker

grep.c:1805–1817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1803}
1804
1805static void clr_hit_marker(struct grep_expr *x)
1806{
1807 /* All-hit markers are meaningful only at the very top level
1808 * OR node.
1809 */
1810 while (1) {
1811 x->hit = 0;
1812 if (x->node != GREP_NODE_OR)
1813 return;
1814 x->u.binary.left->hit = 0;
1815 x = x->u.binary.right;
1816 }
1817}
1818
1819static int chk_hit_marker(struct grep_expr *x)
1820{

Callers 1

grep_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected