git-rev-parse --parseopt
commit5410a02ab9e6a1987147724f8ea65e6a077b3832
authorJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2007 20:23:14 +0000 (6 12:23 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2007 20:23:14 +0000 (6 12:23 -0800)
treee21b1a63136ab205c8796b0a560dacc475d085a5
parent8f321a39257a06db014a3b6ae5dce839821cdb16
git-rev-parse --parseopt

The "parseopt mode" of git-rev-parse does not need to be run
inside a git repository, although the normal mode does.

Most notabily, lack of this fix breaks git-clone script, as
noticed by Nico.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-parse.c
git.c