rev-parse, unknown arguments and extended sha1's
- From
- Sven Verdoolaege <skimo@liacs.nl>
- Date
- Jun 24, 2005, 12:24 UTC
- Message-ID
- <20050624122436.GA15182@pc117b.liacs.nl>
Is git-rev-parse supposed to echo arguments it doesn't understand ? It currently does, but git-checkout-script seems to think it doesn't:
rev=$(git-rev-parse "$arg")
if [ -z "$rev" ]; then
echo "unknown flag $arg"
exit 1
fiAlso, is there any reason why the extended sha1 notation is restricted to the scripts and not used in the actual plumbing ?
skimo