Re: [PATCH] Support pathspec magic :(exclude) and its short form :-

2013-11-21 Thread Junio C Hamano
Duy Nguyen pclo...@gmail.com writes: Btw I'm thinking of extending pathspec magic syntax a bit to allow path completion. Right now the user has to write git log -- :-Documentation which does not play well with path completion. I'm thinking of accepting git log -- :- Documentation Please

Re: [PATCH] Support pathspec magic :(exclude) and its short form :-

2013-11-20 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- This is yet another stab at the negative pathspec thing. It's not ready yet (there are a few XXXs) but I could use some feedback regarding the interface, or the behavior. It looks

Re: [PATCH] Support pathspec magic :(exclude) and its short form :-

2013-11-20 Thread Duy Nguyen
On Thu, Nov 21, 2013 at 6:48 AM, Junio C Hamano gits...@pobox.com wrote: We don't have many options that say negative in short form. Either '!', '-' or '~'. '!' is already used for bash history expansion. ~ looks more like $HOME expansion. Which left me '-'. I agree with your decision to

[PATCH] Support pathspec magic :(exclude) and its short form :-

2013-11-19 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- This is yet another stab at the negative pathspec thing. It's not ready yet (there are a few XXXs) but I could use some feedback regarding the interface, or the behavior. It looks better this time now that pathspec magic is supported