git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SHA256 support not experimental, or?
@ 2023-06-28 16:28 Adam Majer
  2023-06-29  1:59 ` brian m. carlson
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Adam Majer @ 2023-06-28 16:28 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

Hi all,

Is sha256 still considered experimental or can it be assumed to be stable?

The usecase here is we are planning on moving to sha256 repositories 
mostly due to integrity guarantees, hypothetical or otherwise. What is 
important is not the initial interop challenges with sha1 repos, but 
whether the on-disk format will remain compatible with future versions 
of git. At minimum, the on-disk format would be converted by some future 
version(s) of git into another one and not be an end-of-the-road because 
it was "experimental" where dataloss is an implied risk.

Attached is a patch that removes the scary text, if indeed sha256 should 
be viewed as stable.

Cheers,
- Adam

[-- Attachment #2: 0001-doc-sha256-is-no-longer-experimantal.patch --]
[-- Type: text/x-patch, Size: 1580 bytes --]

---
 Documentation/git.txt                      | 4 ++--
 Documentation/object-format-disclaimer.txt | 8 ++------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/Documentation/git.txt b/Documentation/git.txt
index f0cafa2290..7c150a473c 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -553,8 +553,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
 	ignored when cloning and the setting of the remote repository
-	is always used. The default is "sha1". THIS VARIABLE IS
-	EXPERIMENTAL! See `--object-format` in linkgit:git-init[1].
+	is always used. The default is "sha1".
+    See `--object-format` in linkgit:git-init[1].
 
 Git Commits
 ~~~~~~~~~~~
diff --git a/Documentation/object-format-disclaimer.txt b/Documentation/object-format-disclaimer.txt
index 4cb106f0d1..dccee9c400 100644
--- a/Documentation/object-format-disclaimer.txt
+++ b/Documentation/object-format-disclaimer.txt
@@ -1,6 +1,2 @@
-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.
+Note: SHA-256 repository will in general not be able to
+share work with "regular" SHA-1 repositories.
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-07-31 16:45 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 16:28 SHA256 support not experimental, or? Adam Majer
2023-06-29  1:59 ` brian m. carlson
2023-06-29 10:42   ` Adam Majer
2023-06-29  5:59 ` Junio C Hamano
2023-06-29 10:53   ` Adam Majer
2023-06-29 20:56     ` Junio C Hamano
2023-06-29 21:17   ` brian m. carlson
2023-06-29 22:22     ` Junio C Hamano
2023-06-30  1:21       ` brian m. carlson
2023-06-30  9:31         ` Patrick Steinhardt
2023-06-30 11:25           ` Adam Majer
2023-06-30 11:38             ` Patrick Steinhardt
2023-06-30 12:20             ` Son Luong Ngoc
2023-06-30 16:45               ` Junio C Hamano
2023-07-20 15:07 ` Adam Majer
2023-07-20 18:18   ` Junio C Hamano
2023-07-26 16:44     ` Junio C Hamano
2023-07-31 13:38     ` Adam Majer
2023-07-31 13:42       ` [PATCH] doc: sha256 is no longer experimental Adam Majer
2023-07-31 16:01         ` Junio C Hamano
2023-07-31 16:44           ` Adam Majer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).