author | Junio C Hamano <gitster@pobox.com> | |
Thu, 24 Jul 2008 00:22:58 +0000 (17:22 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 24 Jul 2008 01:11:04 +0000 (18:11 -0700) | ||
commit | 0c4cd7f4a7aae5527560090aad7ef8dae85f1264 | |
tree | c1278f8d9dfd293c0794a05d2e9c06f75b796ffc | tree | snapshot |
parent | 2ca880fe54660869bc93a2302efced9ab64511d9 | commit | diff |
ignore non-existent refs in dwim_log()
f2eba66 (Enable HEAD@{...} and make it independent from the current
branch, 2007-02-03) introduced dwim_log() to handle <refname>@{...}
syntax, and as part of its processing, it checks if the ref exists by
calling refsolve_ref(). It should call it as a reader to make sure the
call returns NULL for a nonexistent ref (not as a potential writer in
which case it does not return NULL).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
f2eba66 (Enable HEAD@{...} and make it independent from the current
branch, 2007-02-03) introduced dwim_log() to handle <refname>@{...}
syntax, and as part of its processing, it checks if the ref exists by
calling refsolve_ref(). It should call it as a reader to make sure the
call returns NULL for a nonexistent ref (not as a potential writer in
which case it does not return NULL).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c | diff | blob | history |