]> git.ipfire.org Git - thirdparty/git.git/commitdiff
grep/pcre2: correct reference to grep_init() in comment
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 18 Feb 2021 00:07:21 +0000 (01:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 00:32:18 +0000 (16:32 -0800)
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>
grep.c

diff --git a/grep.c b/grep.c
index f27c5de7f568ea90522ecff3c5ea82fd4353295b..b9adcd83e7aa1e526272d4d7dbcd77a5c8507298 100644 (file)
--- 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)