According to the man page for git-init for version 2.30.0, the sha-256 support is still considered experimental:
Actually, Git 2.42 (Q3 2023) tones down the warning on SHA-256 repositories being an experimental curiosity.
There is no support (yet) for them to interoperate with traditional SHA-1 repositories, but at this point, there is no plan to make breaking changes to SHA-256 repositories and there is no longer need for such a strongly phrased warning.
See commit 8e42eb0 (31 Jul 2023) by Adam Majer (AdamMajer
).
(Merged by Junio C Hamano -- gitster
-- in commit e48d9c7, 07 Aug 2023)
doc
: sha256 is no longer experimental
Signed-off-by: Adam Majer
Remove scary wording that basically stops people using sha256 repositories not because of interoperability issues with sha1 repositories, but from fear that their work will suddenly become incompatible in some future version of git.
We should be clear that currently sha256 repositories will not work with sha1 repositories but stop the scary words.
git
now includes in its man page:
is always used. The default is "sha1".
See --object-format
in git init
.
object-format-disclaimer
now includes in its man page:
Note: At present, there is no interoperability between SHA-256
repositories and SHA-1 repositories.
Historically, we warned that SHA-256 repositories may later need
backward incompatible changes when we introduce such interoperability
features. Today, we only expect compatible changes. Furthermore, if such
changes prove to be necessary, it can be expected that SHA-256 repositories
created with today's Git will be usable by future versions of Git
without data loss.