]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: add documentation for extensions.objectFormat
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 29 Jul 2020 23:14:27 +0000 (23:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2020 16:16:49 +0000 (09:16 -0700)
Document the extensions.objectFormat config setting.  Warn users not to
modify it themselves.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/config/extensions.txt [new file with mode: 0644]

index ef0768b91a02cafdcb6044dba0169a5092bbd913..3042d80978d6158f827fa1ea272edb7d2b2d571b 100644 (file)
@@ -348,6 +348,8 @@ include::config/diff.txt[]
 
 include::config/difftool.txt[]
 
+include::config/extensions.txt[]
+
 include::config/fastimport.txt[]
 
 include::config/feature.txt[]
diff --git a/Documentation/config/extensions.txt b/Documentation/config/extensions.txt
new file mode 100644 (file)
index 0000000..4e23d73
--- /dev/null
@@ -0,0 +1,8 @@
+extensions.objectFormat::
+       Specify the hash algorithm to use.  The acceptable values are `sha1` and
+       `sha256`.  If not specified, `sha1` is assumed.  It is an error to specify
+       this key unless `core.repositoryFormatVersion` is 1.
++
+Note that this setting should only be set by linkgit:git-init[1] or
+linkgit:git-clone[1].  Trying to change it after initialization will not
+work and will produce hard-to-diagnose issues.