author | Michał Kiedrowicz <michal.kiedrowicz@gmail.com> | |
Mon, 9 May 2011 21:52:05 +0000 (23:52 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 23:29:33 +0000 (16:29 -0700) | ||
commit | 63e7e9d8b6483fed555ebed1c79a4820b2ba2558 | |
tree | 6970e3b85e6870c8fc75eb5704e44c92b1872438 | tree | snapshot |
parent | a30c148aa7ec6583dbdb38fa6601df3cf4f5a660 | commit | diff |
git-grep: Learn PCRE
This patch teaches git-grep the --perl-regexp/-P options (naming
borrowed from GNU grep) in order to allow specifying PCRE regexes on the
command line.
PCRE has a number of features which make them more handy to use than
POSIX regexes, like consistent escaping rules, extended character
classes, ungreedy matching etc.
git isn't build with PCRE support automatically. USE_LIBPCRE environment
variable must be enabled (like `make USE_LIBPCRE=YesPlease`).
Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This patch teaches git-grep the --perl-regexp/-P options (naming
borrowed from GNU grep) in order to allow specifying PCRE regexes on the
command line.
PCRE has a number of features which make them more handy to use than
POSIX regexes, like consistent escaping rules, extended character
classes, ungreedy matching etc.
git isn't build with PCRE support automatically. USE_LIBPCRE environment
variable must be enabled (like `make USE_LIBPCRE=YesPlease`).
Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-grep.txt | diff | blob | history | |
Makefile | diff | blob | history | |
builtin/grep.c | diff | blob | history | |
contrib/completion/git-completion.bash | diff | blob | history | |
grep.c | diff | blob | history | |
grep.h | diff | blob | history |