Re: [PATCH 11/16] config: add --literal-match option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 12, 2008 at 10:46:43PM +0100, Jakub Narebski wrote:

> > +--literal-match::
> > +
> > +       Some invocations of git-config will limit their actions based on
> > +       matching a config value to a regular expression. If this option
> > +       is used, then any such matches are done as a string comparison
> > +       rather than as a regular expression match.
> > +
> 
> Why this option is not named --fixed-strings, as everywhere else, then?

Because I never use --fixed-strings anywhere else and didn't think of
it? :)

I think, though, that there is a key difference, and using that name
would lead to confusion. In grep, --fixed-strings means "find this fixed
_substring_ within the input" whereas this option means "find the value
that is byte-for-byte equal to this."

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux