From abc06822af57347d35c0cd64b67e1faeb5b65c71 Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Mon, 15 Aug 2011 23:17:46 +0200 Subject: rev-parse: add option --resolve-git-dir Check if 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 Mentored-by: Jens Lehmann Mentored-by: Heiko Voigt Signed-off-by: Junio C Hamano --- Documentation/git-rev-parse.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation') diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt index 42c9676eaa..8023dc086d 100644 --- a/Documentation/git-rev-parse.txt +++ b/Documentation/git-rev-parse.txt @@ -180,6 +180,10 @@ print a message to stderr and exit with nonzero status. ...:: Flags and parameters to be parsed. +--resolve-git-dir :: + Check if is a valid git-dir or a git-file pointing to a valid + git-dir. If is a valid git-dir the resolved path to git-dir will + be printed. include::revisions.txt[] -- cgit v1.3