Re: [PATCH v5 2/2] Add new @ shortcut for HEAD

2013-09-10 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: Felipe Contreras felipe.contre...@gmail.com writes: Hmph, is the above sufficient? I added a case that mimics Stefano's original regression report (which is handled) and another that uses doubled @ for the same purpose of introducing a funny

Re: [PATCH v5 2/2] Add new @ shortcut for HEAD

2013-09-09 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: Hmph, is the above sufficient? I added a case that mimics Stefano's original regression report (which is handled) and another that uses doubled @ for the same purpose of introducing a funny hierarchy, and it appears that checkout -b chokes

Re: [PATCH v5 2/2] Add new @ shortcut for HEAD

2013-09-08 Thread Felipe Contreras
On Tue, Sep 3, 2013 at 1:50 PM, Junio C Hamano gits...@pobox.com wrote: Felipe Contreras felipe.contre...@gmail.com writes: diff --git a/sha1_name.c b/sha1_name.c index 93197b9..b8ece6e 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -1004,6 +1004,26 @@ int get_sha1_mb(const char *name,

Re: [PATCH v5 2/2] Add new @ shortcut for HEAD

2013-09-03 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: diff --git a/sha1_name.c b/sha1_name.c index 93197b9..b8ece6e 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -1004,6 +1004,26 @@ int get_sha1_mb(const char *name, unsigned char *sha1) return st; } +/* parse @something syntax,