summaryrefslogtreecommitdiff
path: root/grep.c
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'ab/various-leak-fixes'Junio C Hamano2023-02-221-5/+10
|\
| * grep API: plug memory leaks by freeing "header_list"Ævar Arnfjörð Bjarmason2023-02-061-0/+1
| * grep.c: refactor free_grep_patterns()Ævar Arnfjörð Bjarmason2023-02-061-5/+9
* | Merge branch 'cb/grep-fallback-failing-jit'Junio C Hamano2023-02-151-2/+48
|\ \ | |/ |/|
| * grep: fall back to interpreter if JIT memory allocation failsMathias Krause2023-01-311-2/+48
* | grep: correctly identify utf-8 characters with \{b,w} in -PCarlo Marcelo Arenas Belón2023-01-181-1/+1
|/
* Merge branch 'ab/grep-simplify-extended-expression'Junio C Hamano2022-10-211-8/+7
|\
| * grep.c: remove "extended" in favor of "pattern_expression", fix segfaultÆvar Arnfjörð Bjarmason2022-10-111-8/+7
* | grep: add --max-count command line optionCarlos López2022-06-221-1/+1
|/
* Merge branch 'rs/pcre-invalid-utf8-fix-fix'Junio C Hamano2022-02-251-1/+1
|\
| * grep: fix triggering PCRE2_NO_START_OPTIMIZE workaroundRené Scharfe2022-02-171-1/+1
* | Merge branch 'ab/grep-patterntype'Junio C Hamano2022-02-251-99/+14
|\ \
| * | grep: simplify config parsing and option parsingÆvar Arnfjörð Bjarmason2022-02-151-60/+9
| * | grep.c: do "if (bool && memchr())" not "if (memchr() && bool)"Ævar Arnfjörð Bjarmason2022-02-151-1/+2
| * | grep API: call grep_config() after grep_init()Ævar Arnfjörð Bjarmason2022-02-151-36/+3
| * | built-ins: trust the "prefix" from run_builtin()Ævar Arnfjörð Bjarmason2022-02-151-3/+1
* | | Merge branch 'rs/grep-expr-cleanup'Junio C Hamano2022-02-051-34/+36
|\ \ \ | |/ / |/| |
| * | grep: use grep_and_expr() in compile_pattern_and()Taylor Blau2022-01-061-6/+7
| * | grep: extract grep_binexp() from grep_or_expr()Taylor Blau2022-01-061-2/+9
| * | grep: use grep_not_expr() in compile_pattern_not()René Scharfe2022-01-061-13/+11
| * | grep: use grep_or_expr() in compile_pattern_or()René Scharfe2022-01-061-15/+11
* | | Merge branch 'lh/use-gnu-color-in-grep'Junio C Hamano2022-01-101-3/+3
|\ \ \ | |/ / |/| |
| * | grep: align default colors with GNU grep onesLénaïc Huard2022-01-051-3/+3
* | | Merge branch 'rs/pcre2-utf'Junio C Hamano2022-01-051-2/+2
|\ \ \
| * | | grep/pcre2: factor out literal variableRené Scharfe2021-12-201-2/+2
| * | | grep/pcre2: use PCRE2_UTF even with ASCII patternsRené Scharfe2021-12-201-1/+1
| |/ /
* | | log: let --invert-grep only invert --grepRené Scharfe2021-12-171-3/+19
|/ /
* | Revert "grep/pcre2: fix an edge case concerning ascii patterns and UTF-8 data"Junio C Hamano2021-11-191-4/+2
* | grep/pcre2: fix an edge case concerning ascii patterns and UTF-8 dataHamza Mahfooz2021-10-151-2/+4
* | grep: refactor next_match() and match_one_pattern() for external useHamza Mahfooz2021-09-291-30/+49
* | grep: store grep_source buffer as constJeff King2021-09-221-3/+6
* | grep: mark "haystack" buffers as constJeff King2021-09-221-26/+35
* | grep: stop modifying buffer in grep_source_1()Jeff King2021-09-221-4/+1
* | grep: stop modifying buffer in show_line()Jeff King2021-09-221-3/+0
* | grep: stop modifying buffer in strip_timestampJeff King2021-09-221-10/+3
* | grep: add repository to OID grep sourcesJonathan Tan2021-09-081-2/+5
* | grep: typesafe versions of grep_source_initJonathan Tan2021-09-081-18/+28
* | Merge branch 'rs/grep-parser-fix'Junio C Hamano2021-07-131-0/+2
|\ \
| * | grep: report missing left operand of --andRené Scharfe2021-06-301-0/+2
* | | hash: provide per-algorithm null OIDsbrian m. carlson2021-04-271-1/+1
* | | Merge branch 'ab/grep-pcre2-allocfix'Junio C Hamano2021-03-221-56/+43
|\ \ \ | | |/ | |/|
| * | grep/pcre2: move definitions of pcre2_{malloc,free}Ævar Arnfjörð Bjarmason2021-02-171-24/+22
| * | grep/pcre2: move back to thread-only PCREv2 structuresÆvar Arnfjörð Bjarmason2021-02-171-26/+15
| * | grep/pcre2: actually make pcre2 use custom allocatorÆvar Arnfjörð Bjarmason2021-02-171-2/+2
| * | grep/pcre2: use pcre2_maketables_free() functionÆvar Arnfjörð Bjarmason2021-02-171-0/+4
| * | grep/pcre2: use compile-time PCREv2 version testÆvar Arnfjörð Bjarmason2021-02-171-14/+4
| * | grep/pcre2: add GREP_PCRE2_DEBUG_MALLOC debug modeÆvar Arnfjörð Bjarmason2021-02-171-0/+10
| * | grep/pcre2: prepare to add debugging to pcre2_malloc()Ævar Arnfjörð Bjarmason2021-02-171-1/+2
| * | grep/pcre2: correct reference to grep_init() in commentÆvar Arnfjörð Bjarmason2021-02-171-1/+1
| * | grep/pcre2: drop needless assignment to NULLÆvar Arnfjörð Bjarmason2021-02-171-2/+0