summaryrefslogtreecommitdiff
path: root/t/helper/test-sigchain.c
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2022-01-06 14:50:12 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-06 13:14:55 -0800
commitf2d275984d2b931b51f39d4019e78031a36cb2f0 (patch)
tree202aaf8fc8b07516953472ba588eb8fa33ae1c4b /t/helper/test-sigchain.c
parentgrep: use grep_not_expr() in compile_pattern_not() (diff)
downloadtgif-f2d275984d2b931b51f39d4019e78031a36cb2f0.tar.xz
grep: extract grep_binexp() from grep_or_expr()
When constructing an OR node, the grep.c code uses `grep_or_expr()` to make a node, assign its kind, and set its left and right children. The same is not done for AND nodes. Prepare to introduce a new `grep_and_expr()` function which will share code with the existing implementation of `grep_or_expr()` by introducing a new function which compiles either kind of binary expression, and reimplement `grep_or_expr()` in terms of it. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-sigchain.c')
0 files changed, 0 insertions, 0 deletions