summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-02-22 20:17:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-24 17:33:27 (GMT)
commitcfe3917c85f38c3367de7b6f5838ecaf6d1e148d (patch)
tree154e3c9ae4054961396971c09a36512c8c4d559a /path.c
parentbf154a878281b6a971ece0fb6d917938298be60d (diff)
downloadgit-cfe3917c85f38c3367de7b6f5838ecaf6d1e148d.zip
git-cfe3917c85f38c3367de7b6f5838ecaf6d1e148d.tar.gz
git-cfe3917c85f38c3367de7b6f5838ecaf6d1e148d.tar.bz2
setup: allow check_repository_format to read repository format
In some cases, we will want to not only check the repository format, but extract the information that we've gained. To do so, allow check_repository_format to take a pointer to struct repository_format. Allow passing NULL for this argument if we're not interested in the information, and pass NULL for all existing callers. A future patch will make use of this information. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 88cf593..a10b62c 100644
--- a/path.c
+++ b/path.c
@@ -851,7 +851,7 @@ const char *enter_repo(const char *path, int strict)
if (is_git_directory(".")) {
set_git_dir(".");
- check_repository_format();
+ check_repository_format(NULL);
return path;
}