Skip to content
  • Michał Kiedrowicz's avatar
    git-grep: Learn PCRE · 63e7e9d8
    Michał Kiedrowicz authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarMichał Kiedrowicz <michal.kiedrowicz@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    63e7e9d8