summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-18 01:07:21 +0100
committerJunio C Hamano <gitster@pobox.com>2021-02-17 16:32:18 -0800
commit47eebd2fd2c576377f40555c539c5fc56af060a0 (patch)
tree5d2c97b6cbcdda8e5272fee2d8c9dab02c139d59 /grep.c
parent1cfc5a850c3962f341accb15cef6d09c21bbbdee (diff)
downloadgit-47eebd2fd2c576377f40555c539c5fc56af060a0.tar.gz
grep/pcre2: correct reference to grep_init() in comment
Correct a comment added in 513f2b0bbd4 (grep: make PCRE2 aware of custom allocator, 2019-10-16). This comment was never correct in git.git, but was consistent with an older version of the patch[1]. 1. https://lore.kernel.org/git/20190806163658.66932-3-carenas@gmail.com/ Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index f27c5de7f5..b9adcd83e7 100644
--- a/grep.c
+++ b/grep.c
@@ -373,7 +373,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt
int patinforet;
size_t jitsizearg;
- /* pcre2_global_context is initialized in append_grep_pattern */
+ /* pcre2_global_context is initialized in grep_init */
if (opt->ignore_case) {
if (!opt->ignore_locale && has_non_ascii(p->pattern)) {
if (!pcre2_global_context)