grep: read patterns from stdin with -f -
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 19 Mar 2011 18:33:15 +0000 (19:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Mar 2011 04:46:52 +0000 (21:46 -0700)
commitc41dd2fd7d3a16e6f0b1629d688bee3240db496c
tree77348580064caf5b871624a98f007450627bb42d
parentaf4c62ae88d403a417ba7c2b879eca10e7bff8f4
grep: read patterns from stdin with -f -

Support the well-know convention of reading standard input instead of a
named file if "-" (dash) is specified.  GNU grep does the same.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c
t/t7810-grep.sh