summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2014-02-23 20:49:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-24 17:48:40 (GMT)
commit136347d718320c56030e3b7a3437259e99c4c41b (patch)
tree269f8c0287bef262d7751e0913dfaedadf9b6e34 /Documentation/git.txt
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-136347d718320c56030e3b7a3437259e99c4c41b.zip
git-136347d718320c56030e3b7a3437259e99c4c41b.tar.gz
git-136347d718320c56030e3b7a3437259e99c4c41b.tar.bz2
introduce GIT_INDEX_VERSION environment variable
Respect a GIT_INDEX_VERSION environment variable, when a new index is initialized. Setting the environment variable will not cause existing index files to be converted to another format, but will only affect newly written index files. This can be used to initialize repositories with index-v4. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 02bbc08..27a199c 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -720,6 +720,11 @@ Git so take care if using Cogito etc.
index file. If not specified, the default of `$GIT_DIR/index`
is used.
+'GIT_INDEX_VERSION'::
+ This environment variable allows the specification of an index
+ version for new repositories. It won't affect existing index
+ files. By default index file version [23] is used.
+
'GIT_OBJECT_DIRECTORY'::
If the object storage directory is specified via this
environment variable then the sha1 directories are created