mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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 57db2a094d (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>
This commit is contained in:
committed by
Junio C Hamano
parent
83014dc05f
commit
d0b94577dd
@@ -20,6 +20,12 @@ enum ref_storage_format {
|
||||
REF_STORAGE_FORMAT_REFTABLE,
|
||||
};
|
||||
|
||||
#ifdef WITH_BREAKING_CHANGES /* Git 3.0 */
|
||||
# define REF_STORAGE_FORMAT_DEFAULT REF_STORAGE_FORMAT_REFTABLE
|
||||
#else
|
||||
# define REF_STORAGE_FORMAT_DEFAULT REF_STORAGE_FORMAT_FILES
|
||||
#endif
|
||||
|
||||
struct repo_path_cache {
|
||||
char *squash_msg;
|
||||
char *merge_msg;
|
||||
|
||||
Reference in New Issue
Block a user