]> git.ipfire.org Git - thirdparty/git.git/commit
grep: use grep_or_expr() in compile_pattern_or()
authorRené Scharfe <l.s.r@web.de>
Thu, 6 Jan 2022 09:51:00 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2022 20:07:09 +0000 (12:07 -0800)
commit9dbf00ba785e2cf950fadb2c20e81422ebb1a4d5
tree50176dbaf6e151fe71b11881c53e485e5a94e318
parente83ba647f7c61cf945690d6a0bd8c172a6498dc8
grep: use grep_or_expr() in compile_pattern_or()

Move the definition of grep_or_expr() up and use this function in
compile_pattern_or() to reduce code duplication.

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