1
- Git Repository Format Versions
2
- ==============================
1
+ == Git Repository Format Versions
3
2
4
3
Every git repository is marked with a numeric version in the
5
4
`core.repositoryformatversion` key of its `config` file. This version
@@ -40,16 +39,14 @@ format by default.
40
39
41
40
The currently defined format versions are:
42
41
43
- Version `0`
44
- -----------
42
+ === Version `0`
45
43
46
44
This is the format defined by the initial version of git, including but
47
45
not limited to the format of the repository directory, the repository
48
46
configuration file, and the object and ref storage. Specifying the
49
47
complete behavior of git is beyond the scope of this document.
50
48
51
- Version `1`
52
- -----------
49
+ === Version `1`
53
50
54
51
This format is identical to version `0`, with the following exceptions:
55
52
@@ -74,21 +71,18 @@ it here, in order to claim the name.
74
71
75
72
The defined extensions are:
76
73
77
- `noop`
78
- ~~~~~~
74
+ ==== `noop`
79
75
80
76
This extension does not change git's behavior at all. It is useful only
81
77
for testing format-1 compatibility.
82
78
83
- `preciousObjects`
84
- ~~~~~~~~~~~~~~~~~
79
+ ==== `preciousObjects`
85
80
86
81
When the config key `extensions.preciousObjects` is set to `true`,
87
82
objects in the repository MUST NOT be deleted (e.g., by `git-prune` or
88
83
`git repack -d`).
89
84
90
- `partialclone`
91
- ~~~~~~~~~~~~~~
85
+ ==== `partialclone`
92
86
93
87
When the config key `extensions.partialclone` is set, it indicates
94
88
that the repo was created with a partial clone (or later performed
@@ -98,3 +92,11 @@ and it promises that all such omitted objects can be fetched from it
98
92
in the future.
99
93
100
94
The value of this key is the name of the promisor remote.
95
+
96
+ ==== `worktreeConfig`
97
+
98
+ If set, by default "git config" reads from both "config" and
99
+ "config.worktree" file from GIT_DIR in that order. In
100
+ multiple working directory mode, "config" file is shared while
101
+ "config.worktree" is per-working directory (i.e., it's in
102
+ GIT_COMMON_DIR/worktrees/<id>/config.worktree)
0 commit comments