]> git.ipfire.org Git - thirdparty/git.git/commit
grep: use grep_and_expr() in compile_pattern_and()
authorTaylor Blau <me@ttaylorr.com>
Thu, 6 Jan 2022 19:50:15 +0000 (14:50 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2022 22:15:33 +0000 (14:15 -0800)
commit0a6adc26e2efd2dcfb3e65407623287e08989a63
treef1a87d7edb02c89b3bde5d9c88d92619f54f4413
parentf2d275984d2b931b51f39d4019e78031a36cb2f0
grep: use grep_and_expr() in compile_pattern_and()

In a similar spirit as a previous commit, use the new `grep_and_expr()`
to construct the AND node in `compile_pattern_and()`.

Unlike the aforementioned previous commit, this is not about code
duplication, since this is the only spot in grep.c where an AND node is
constructed. Rather, this is about visual consistency with the other
`compile_pattern_xyz()` functions.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c