summaryrefslogtreecommitdiff
path: root/repository.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-03 11:35:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-05 19:14:04 (GMT)
commit2bee50a083fbf549c3f062a2f89c6e636f532762 (patch)
tree8f01b86f0f99e19522ecce9201ed26d00bb8454d /repository.h
parent7bc0dcaa6120efec8cf8caef8511c09d35dbcf09 (diff)
downloadgit-2bee50a083fbf549c3f062a2f89c6e636f532762.zip
git-2bee50a083fbf549c3f062a2f89c6e636f532762.tar.gz
git-2bee50a083fbf549c3f062a2f89c6e636f532762.tar.bz2
repository: delete ignore_env member
This variable was added because the repo_set_gitdir() was created to cover both submodule and main repos, but these two are initialized a bit differently so ignore_env == 0 means main repo, while ignore_env != 0 is submodules. Since the difference part (env variables) has been moved out of repo_set_gitdir(), this function works the same way for both repo types and ignore_env is not needed anymore. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.h')
-rw-r--r--repository.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/repository.h b/repository.h
index 2bfbf76..e7127ba 100644
--- a/repository.h
+++ b/repository.h
@@ -75,15 +75,6 @@ struct repository {
const struct git_hash_algo *hash_algo;
/* Configurations */
- /*
- * Bit used during initialization to indicate if repository state (like
- * the location of the 'objectdir') should be read from the
- * environment. By default this bit will be set at the begining of
- * 'repo_init()' so that all repositories will ignore the environment.
- * The exception to this is 'the_repository', which doesn't go through
- * the normal 'repo_init()' process.
- */
- unsigned ignore_env:1;
/* Indicate if a repository has a different 'commondir' from 'gitdir' */
unsigned different_commondir:1;