Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [PATCH] refs.c: interpret @ as HEAD

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:57:04

Junio C Hamano wrote:
"git update-ref HEAD $commit" is accepted.  If @ is a synonym for
HEAD, "git update-ref @ $commit" should work exactly the same way,
but is it desirable?
 Would we have $GIT_DIR/@ as the result?  How
about "git symbolic-ref"?
Yes, it is a valid refname that can be overridden [*1*].
Would @@{4} and HEAD@{4} be the same?
No.  Why should they?

[Footnotes]

*1*: In the current implementation, git update-ref fails.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help