author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 11 May 2008 16:28:25 +0000 (18:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 May 2008 18:51:12 +0000 (11:51 -0700) | ||
commit | dfd1b749befcb581d84722caa6a3af56ce6526a5 | |
tree | 0f7b1e456937ec3309927c007cb460327353c557 | tree | snapshot |
parent | 28bfa145e4dedad9b2c81857b77ca13871c77853 | commit | diff |
rev-parse --verify: do not output anything on error
Before this patch, when "git rev-parse --verify" was passed at least one
good rev and then anything, it would output something for the good rev
even if it would latter exit on error.
With this patch, we only output something if everything is ok.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Before this patch, when "git rev-parse --verify" was passed at least one
good rev and then anything, it would output something for the good rev
even if it would latter exit on error.
With this patch, we only output something if everything is ok.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-parse.c | diff | blob | history | |
t/t1503-rev-parse-verify.sh | diff | blob | history |