Code

rev-parse: fix using "--default" with "--verify"
authorChristian Couder <chriscool@tuxfamily.org>
Sun, 11 May 2008 16:27:36 +0000 (18:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 May 2008 18:36:07 +0000 (11:36 -0700)
commit28bfa145e4dedad9b2c81857b77ca13871c77853
tree56bb50b80e3977dc9f28f3fa5d2b5853876c634b
parent921df15f1d276bdecb7c4e134dff97f4e3adf953
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>
builtin-rev-parse.c
t/t1503-rev-parse-verify.sh