sha1_name: remove no-op
'at' is always 0, since we can reach this point only if !len && reflog_len, and len=at when reflog is assigned. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
May 7, 2013 at 16:55 UTC
1ef2d8dacc992b98444170ea9ee17de417433146
1 file changed
+1
-1
sha1_name.c
+1
-1
@@ -464,7 +464,7 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
464
struct strbuf buf = STRBUF_INIT;
465
int ret;
466
/* try the @{-N} syntax for n-th checkout */
467
- ret = interpret_branch_name(str+at, &buf);
467
+ ret = interpret_branch_name(str, &buf);
468
if (ret > 0) {
469
/* substitute this branch name and restart */
470
return get_sha1_1(buf.buf, buf.len, sha1, 0);