author | Dave Olszewski <cxreg@pobox.com> | |
Sat, 13 Mar 2010 22:47:05 +0000 (14:47 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Mar 2010 05:23:43 +0000 (21:23 -0800) | ||
commit | 8fcaca3ff29a193f50a44bb3d5734a503e0539a6 | |
tree | 849aa7f164afc9cabbc523b9730c0f55a6ed7f7a | tree | snapshot |
parent | 8ca788035644f2aaf7a951272ae16a7bd319554c | commit | diff |
don't use default revision if a rev was specified
If a revision is specified, it happens not to have any commits, don't
use the default revision. By doing so, surprising and undesired
behavior can happen, such as showing the reflog for HEAD when a branch
was specified.
[jc: squashed a test from René]
Signed-off-by: Dave Olszewski <cxreg@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If a revision is specified, it happens not to have any commits, don't
use the default revision. By doing so, surprising and undesired
behavior can happen, such as showing the reflog for HEAD when a branch
was specified.
[jc: squashed a test from René]
Signed-off-by: Dave Olszewski <cxreg@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c | diff | blob | history | |
t/t1411-reflog-show.sh | diff | blob | history |