• M
    git-grep: Learn PCRE · 63e7e9d8
    Michał Kiedrowicz 提交于
    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: NMichał Kiedrowicz <michal.kiedrowicz@gmail.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    63e7e9d8
grep.c 25.7 KB