diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-05-25 12:04:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-25 12:04:19 -0700 |
commit | fca9e0013eeaad45bff38f66667d2791a1edc53f (patch) | |
tree | b487bf942d747ec16185d361b9249eb5034b7ca4 /grep.h | |
parent | 4f64464023d0bf7ce065f1dccaf267ca38b3521f (diff) | |
parent | ec83061156e18ce600384d3c57f90729a9295488 (diff) | |
download | git-fca9e0013eeaad45bff38f66667d2791a1edc53f.tar.gz |
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.
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; |