Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sha1_name: remove no-op
author
Felipe Contreras
<felipe.contreras@gmail.com>
Tue, 7 May 2013 21:55:06 +0000
(16:55 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 8 May 2013 16:15:37 +0000
(09:15 -0700)
'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>
sha1_name.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
723b74e
)
diff --git
a/sha1_name.c
b/sha1_name.c
index 3820f28ae757cce54a95014629ade4f7feb56efc..01e49a92dd1fe7ae9f37f8967fc2710b7d45897d 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-464,7
+464,7
@@
static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
struct strbuf buf = STRBUF_INIT;
int ret;
/* try the @{-N} syntax for n-th checkout */
- ret = interpret_branch_name(str
+at
, &buf);
+ ret = interpret_branch_name(str, &buf);
if (ret > 0) {
/* substitute this branch name and restart */
return get_sha1_1(buf.buf, buf.len, sha1, 0);