author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 19 Mar 2011 18:33:15 +0000 (19:33 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 20 Mar 2011 04:46:52 +0000 (21:46 -0700) | ||
commit | c41dd2fd7d3a16e6f0b1629d688bee3240db496c | |
tree | 77348580064caf5b871624a98f007450627bb42d | tree | snapshot |
parent | af4c62ae88d403a417ba7c2b879eca10e7bff8f4 | commit | diff |
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>
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 | diff | blob | history | |
t/t7810-grep.sh | diff | blob | history |