Merge branch 'ds/rev-parse-required-args' into maint
commitc7b317320c1301b6bcf4eb4ac824b76114068f11
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2014 21:01:05 +0000 (18 14:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2014 21:01:05 +0000 (18 14:01 -0700)
treee26f8e8a642107b217b0ed39429be9be72eb3ddd
parent6f0166771aadeb069b8952255414d67b643db1bf
parenta43219f2aaa39fbc53ba0aee2481e1cca3c0e649
Merge branch 'ds/rev-parse-required-args' into maint

"git rev-parse" was loose in rejecting command line arguments that
do not make sense, e.g. "--default" without the required value for
that option.

* ds/rev-parse-required-args:
  rev-parse: check i before using argv[i] against argc
builtin/rev-parse.c