]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ma/doc-sha-256-is-experimental'
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2020 21:54:31 +0000 (14:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Aug 2020 21:54:31 +0000 (14:54 -0700)
The recent addition of SHA-256 support is marked as experimental in
the documentation.

* ma/doc-sha-256-is-experimental:
  Documentation: mark `--object-format=sha256` as experimental

Documentation/git-index-pack.txt
Documentation/git-init.txt
Documentation/git-show-index.txt
Documentation/git.txt
Documentation/object-format-disclaimer.txt [new file with mode: 0644]

index ac74d058e01d13830b276616dce25d5745b64699..af0c26232c1e775cf5f4d56ee67c07b6a73a9104 100644 (file)
@@ -100,6 +100,8 @@ OPTIONS
        value is set or outside a repository.
 +
 This option cannot be used with --stdin.
++
+include::object-format-disclaimer.txt[]
 
 NOTES
 -----
index ddfe265da5b6524f30d972bfea990bb2a89b5611..f35f70f13d0385e24ba2c0727e3720b4a068a048 100644 (file)
@@ -53,6 +53,8 @@ current working directory.
 
 Specify the given object format (hash algorithm) for the repository.  The valid
 values are 'sha1' and (if enabled) 'sha256'.  'sha1' is the default.
++
+include::object-format-disclaimer.txt[]
 
 --template=<template_directory>::
 
index 39b1d8eaa1456f60af07de2e30f0653f9d5efd64..e49318a5a0aec7f46c6d23dbff5afcb920fae236 100644 (file)
@@ -44,6 +44,8 @@ OPTIONS
        valid values are 'sha1' and (if enabled) 'sha256'.  The default is the
        algorithm for the current repository (set by `extensions.objectFormat`), or
        'sha1' if no value is set or outside a repository..
++
+include::object-format-disclaimer.txt[]
 
 GIT
 ---
index 81349a84e73f76a8303dffa3d0d9a5bc71314f3e..2fc92586b52386c770bed28a11275c64eea3414a 100644 (file)
@@ -504,7 +504,8 @@ double-quotes and respecting backslash escapes. E.g., the value
        If this variable is set, the default hash algorithm for new
        repositories will be set to this value. This value is currently
        ignored when cloning; the setting of the remote repository
-       is used instead. The default is "sha1".
+       is used instead. The default is "sha1". THIS VARIABLE IS
+       EXPERIMENTAL! See `--object-format` in linkgit:git-init[1].
 
 Git Commits
 ~~~~~~~~~~~
diff --git a/Documentation/object-format-disclaimer.txt b/Documentation/object-format-disclaimer.txt
new file mode 100644 (file)
index 0000000..4cb106f
--- /dev/null
@@ -0,0 +1,6 @@
+THIS OPTION IS EXPERIMENTAL! SHA-256 support is experimental and still
+in an early stage.  A SHA-256 repository will in general not be able to
+share work with "regular" SHA-1 repositories.  It should be assumed
+that, e.g., Git internal file formats in relation to SHA-256
+repositories may change in backwards-incompatible ways.  Only use
+`--object-format=sha256` for testing purposes.