reflog: handle $name => remotes/%s/HEAD mapping consistently for logs
authorJunio C Hamano <junkio@cox.net>
Fri, 9 Feb 2007 07:24:51 +0000 (23:24 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 9 Feb 2007 07:24:51 +0000 (23:24 -0800)
commit40facde06e3f9d5231c257e1a7f5b545b563d45f
treecd72b3530897ca20d96047df6e4501ab8ece1cc9
parenteb3a48221fd4a0b38c31976028dbab7df51be6d4
reflog: handle $name => remotes/%s/HEAD mapping consistently for logs

When refs/remotes/gfi/master and refs/remotes/gfi/HEAD exist,
and the latter is a symref that points at the former, dwim_ref()
resolves string "gfi" to "refs/remotes/gfi/master" as expected,
but dwim_log() does not understand "gfi@{1.day}" and needs to be
told "gfi/master@{1.day}".  This is confusing.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c