Skip to content
  • J Smith's avatar
    grep: add a grep.patternType configuration setting · 84befcd0
    J Smith authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The grep.extendedRegexp configuration setting enables the -E flag on grep
    by default but there are no equivalents for the -G, -F and -P flags.
    
    Rather than adding an additional setting for grep.fooRegexp for current
    and future pattern matching options, add a grep.patternType setting that
    can accept appropriate values for modifying the default grep pattern
    matching behavior. The current values are "basic", "extended", "fixed",
    "perl" and "default" for setting -G, -E, -F, -P and the default behavior
    respectively.
    
    When grep.patternType is set to a value other than "default", the
    grep.extendedRegexp setting is ignored. The value of "default" restores
    the current default behavior, including the grep.extendedRegexp
    behavior.
    
    Signed-off-by: default avatarJ Smith <dark.panda@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    84befcd0