author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Wed, 3 Feb 2010 18:16:30 +0000 (19:16 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Feb 2010 20:03:40 +0000 (12:03 -0800) | ||
commit | 79286102ce1620c5b0e73dc4559450eb24918e08 | |
tree | 5f3473de19fda87e859f20caf64e79f5792890a8 | tree | snapshot |
parent | 4b7acc186f33037178f4d137b2e6099c67492bde | commit | diff |
grep: simplify assignment of ->fixed
After 885d211e, the value of the ->fixed pattern option only depends on
the grep option of the same name. Regex flags don't matter any more,
because fixed mode and regex mode are strictly separated. Thus we can
simply copy the value from struct grep_opt to struct grep_pat, as we do
already for ->word_regexp and ->ignore_case.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
After 885d211e, the value of the ->fixed pattern option only depends on
the grep option of the same name. Regex flags don't matter any more,
because fixed mode and regex mode are strictly separated. Thus we can
simply copy the value from struct grep_opt to struct grep_pat, as we do
already for ->word_regexp and ->ignore_case.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c | diff | blob | history |