From: Ramkumar Ramachandra Date: Thu, 02 May 2013 09:40:48 GMT Subject: Re: [PATCH] sha1_name: reorganize get_sha1_basic() Message-ID: In-Reply-To: <1367455791-30091-1-git-send-email-felipe.contreras@gmail.com> Felipe Contreras wrote: > @@ -447,6 +449,9 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1) > if (len && str[len-1] == '}') { > for (at = len-2; at >= 0; at--) { > if (str[at] == '@' && str[at+1] == '{') { > + if (at == 0 && str[2] == '-') > + /* @{-N} syntax */ > + continue; Nicely done. Thanks.