author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 11 May 2008 16:27:36 +0000 (18:27 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 May 2008 18:36:07 +0000 (11:36 -0700) | ||
commit | 28bfa145e4dedad9b2c81857b77ca13871c77853 | |
tree | 56bb50b80e3977dc9f28f3fa5d2b5853876c634b | tree | snapshot |
parent | 921df15f1d276bdecb7c4e134dff97f4e3adf953 | commit | diff |
rev-parse: fix using "--default" with "--verify"
Before this patch, something like:
$ git rev-parse --verify HEAD --default master
did not work, while:
$ git rev-parse --default master --verify HEAD
worked.
This patch fixes that, so that they both work (assuming
HEAD and master can be parsed).
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Before this patch, something like:
$ git rev-parse --verify HEAD --default master
did not work, while:
$ git rev-parse --default master --verify HEAD
worked.
This patch fixes that, so that they both work (assuming
HEAD and master can be parsed).
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 |