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 --- cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cache.h') diff --git a/cache.h b/cache.h index f49eaf9263..55ae6976b6 100644 --- a/cache.h +++ b/cache.h @@ -436,6 +436,7 @@ extern char *get_graft_file(void); extern int set_git_dir(const char *path); extern const char *get_git_work_tree(void); extern const char *read_gitfile_gently(const char *path); +extern const char *resolve_gitdir(const char *suspect); extern void set_git_work_tree(const char *tree); #define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES" -- cgit v1.3