author | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Dec 2007 10:25:34 +0000 (02:25 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 8 Dec 2007 10:58:26 +0000 (02:58 -0800) | ||
commit | 235997c90fe8648ac199f9a1ae257e06c145c131 | |
tree | 6cae03a2e140b2724381220975ee94fc5041f922 | tree | snapshot |
parent | 4af756f31b0696ed1ca6ad10dc6d7053477edc16 | commit | diff |
git-bisect visualize: work in non-windowed environments better
This teaches "git bisect visualize" to be more useful in non-windowed
environments.
(1) When no option is given, and $DISPLAY is set, it continues to
spawn gitk as before;
(2) When no option is given, and $DISPLAY is unset, "git log" is run
to show the range of commits between the bad one and the good ones;
(3) If only "-flag" options are given, "git log <options>" is run.
E.g. "git bisect visualize --stat"
(4) Otherwise, all of the given options are taken as the initial part
of the command line and the commit range expression is given to
that command. E.g. "git bisect visualize tig" will run "tig"
history viewer to show between the bad one and the good ones.
As "visualize" is a bit too long to type, we also give it a shorter
synonym "view".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This teaches "git bisect visualize" to be more useful in non-windowed
environments.
(1) When no option is given, and $DISPLAY is set, it continues to
spawn gitk as before;
(2) When no option is given, and $DISPLAY is unset, "git log" is run
to show the range of commits between the bad one and the good ones;
(3) If only "-flag" options are given, "git log <options>" is run.
E.g. "git bisect visualize --stat"
(4) Otherwise, all of the given options are taken as the initial part
of the command line and the commit range expression is given to
that command. E.g. "git bisect visualize tig" will run "tig"
history viewer to show between the bad one and the good ones.
As "visualize" is a bit too long to type, we also give it a shorter
synonym "view".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-bisect.txt | diff | blob | history | |
git-bisect.sh | diff | blob | history |