rev-parse: add option --resolve-git-dir <path>
authorFredrik Gustafsson <iveqy@iveqy.com>
Mon, 15 Aug 2011 21:17:46 +0000 (23:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Aug 2011 18:04:31 +0000 (11:04 -0700)
commitabc06822af57347d35c0cd64b67e1faeb5b65c71
tree6a6484a355e2e5b0a8b7b839c0e3ea6b1bd67457
parente7a85be3cfc4ee017f59f1d1f8ceb63d7c88c9c8
rev-parse: add option --resolve-git-dir <path>

Check if <path> is a valid git-dir or a valid git-file that points
to a valid git-dir.

We want tests to be independent from the fact that a git-dir may
be a git-file. Thus we changed tests to use this feature.

Signed-off-by: Fredrik Gustafsson <iveqy@iveqy.com>
Mentored-by: Jens Lehmann <Jens.Lehmann@web.de>
Mentored-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
cache.h
setup.c
t/t7400-submodule-basic.sh
t/t7403-submodule-sync.sh
t/t7407-submodule-foreach.sh