diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-01 22:01:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-01 22:01:41 +0200 |
commit | 2147cb2762c67d0ec2101ab13a4c1b0ef8cab599 (patch) | |
tree | 7dccda03b60264e9922edc9bbcad3d4942d77f10 /grep.h | |
parent | Merge branch 'jk/ident-split-fix' into maint (diff) | |
parent | grep: stop leaking line strings with -f (diff) | |
download | git-2147cb2762c67d0ec2101ab13a4c1b0ef8cab599.tar.xz git-2147cb2762c67d0ec2101ab13a4c1b0ef8cab599.zip |
Merge branch 'rs/maint-grep-F' into maint
"git grep -e '$pattern'", unlike the case where the patterns are read from
a file, did not treat individual lines in the given pattern argument as
separate regular expressions as it should.
By René Scharfe
* rs/maint-grep-F:
grep: stop leaking line strings with -f
grep: support newline separated pattern list
grep: factor out do_append_grep_pat()
grep: factor out create_grep_pat()
Diffstat (limited to 'grep.h')
-rw-r--r-- | grep.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ struct grep_pat { const char *origin; int no; enum grep_pat_token token; - const char *pattern; + char *pattern; size_t patternlen; enum grep_header_field field; regex_t regexp; |