Re: [PATCH 1/2] pathspec magic: add '^' as alias for '!'

2017-02-08 Thread Stefan Beller
On Wed, Feb 8, 2017 at 3:05 PM, Junio C Hamano wrote: > - it hints that '!' is the more official spelling, making the >output you showed above acceptable. Long term , I'd rather have ^ as the "official" spelling as that is easier to teach to people. ! being a historic

Re: [PATCH 1/2] pathspec magic: add '^' as alias for '!'

2017-02-08 Thread Junio C Hamano
Brandon Williams writes: > git cmd -- :^dir > > would produce some output which says: > ':^dir': pathspec magic not supported by this command: 'exclude' (mnemonic: > '!') > > And the user may scratch their head for a second since they didn't > supply the '!' character, but

Re: [PATCH 1/2] pathspec magic: add '^' as alias for '!'

2017-02-08 Thread Brandon Williams
On 02/07, Linus Torvalds wrote: > > From: Linus Torvalds <torva...@linux-foundation.org> > Date: Tue, 7 Feb 2017 21:05:28 -0800 > Subject: [PATCH 1/2] pathspec magic: add '^' as alias for '!' > > The choice of '!' for a negative pathspec ends up not only not matching &g

Re: [PATCH 1/2] pathspec magic: add '^' as alias for '!'

2017-02-08 Thread Cornelius Weig
As Duy pointed out, the glossary needs an update too. For this one, the cange can be minimal I think: diff --git a/Documentation/glossary-content.txt b/Documentation/glossary-content.txt index 8ad29e6..f127fe9 100644 --- a/Documentation/glossary-content.txt +++

[PATCH 1/2] pathspec magic: add '^' as alias for '!'

2017-02-07 Thread Linus Torvalds
From: Linus Torvalds <torva...@linux-foundation.org> Date: Tue, 7 Feb 2017 21:05:28 -0800 Subject: [PATCH 1/2] pathspec magic: add '^' as alias for '!' The choice of '!' for a negative pathspec ends up not only not matching what we do for revisions, it's also a horrible character for