grep: use grep_not_expr() in compile_pattern_not()
commite2b154277addad0a70b23d03c9156ac8e08c4a82
authorRené Scharfe <l.s.r@web.de>
Thu, 6 Jan 2022 09:54:19 +0000 (6 10:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2022 20:07:10 +0000 (6 12:07 -0800)
tree7323697dad83b16e3f9f0f87925199eef1686090
parent9dbf00ba785e2cf950fadb2c20e81422ebb1a4d5
grep: use grep_not_expr() in compile_pattern_not()

Move the definition of grep_not_expr() up and use this function in
compile_pattern_not() to simplify the code and reduce duplication.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c