Merge branch 'rs/maint-grep-F'

"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.
This commit is contained in:
Junio C Hamano
2012-05-25 12:04:19 -07:00
5 changed files with 68 additions and 24 deletions

2
grep.h
View File

@ -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;