aboutsummaryrefslogtreecommitdiffstats
path: root/help.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-04 11:42:56 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-07 06:26:21 -0700
commitd0b94577dda3a50c1833626a70ebefd478bfcbf9 (patch)
treee69edecadc7cbc999b152d98fa404d8be2418f2c /help.c
parentThe fifth batch (diff)
downloadgit-d0b94577dda3a50c1833626a70ebefd478bfcbf9.tar.gz
git-d0b94577dda3a50c1833626a70ebefd478bfcbf9.zip
BreakingChanges: announce switch to "reftable" format
The "reftable" format has come a long way and has matured nicely since it has been merged into git via 57db2a094d5 (refs: introduce reftable backend, 2024-02-07). It fixes longstanding issues that cannot be fixed with the "files" format in a backwards-compatible way and performs significantly better in many use cases. Announce that we will switch to the "reftable" format in Git 3.0 for newly created repositories and wire up the change, hidden behind the WITH_BREAKING_CHANGES preprocessor define. This switch is dependent on support in the larger Git ecosystem. Most importantly, libraries like JGit, libgit2 and Gitoxide should support the reftable backend so that we don't break all applications and tools built on top of those libraries. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/help.c b/help.c
index 21b778707a..89cd47e3b8 100644
--- a/help.c
+++ b/help.c
@@ -810,6 +810,8 @@ void get_version_info(struct strbuf *buf, int show_build_options)
SHA1_UNSAFE_BACKEND);
#endif
strbuf_addf(buf, "SHA-256: %s\n", SHA256_BACKEND);
+ strbuf_addf(buf, "default-ref-format: %s\n",
+ ref_storage_format_to_name(REF_STORAGE_FORMAT_DEFAULT));
}
}