Skip to content

Commit 56e4af3

Browse files
committed
Merge branch 'nd/doc-extensions'
Doc update. * nd/doc-extensions: doc: move extensions.worktreeConfig to the right place
2 parents 7b9bb38 + 356aea6 commit 56e4af3

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

Documentation/config.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,6 @@ include::config/advice.txt[]
292292

293293
include::config/core.txt[]
294294

295-
extensions.worktreeConfig::
296-
If set, by default "git config" reads from both "config" and
297-
"config.worktree" file from GIT_DIR in that order. In
298-
multiple working directory mode, "config" file is shared while
299-
"config.worktree" is per-working directory (i.e., it's in
300-
GIT_COMMON_DIR/worktrees/<id>/config.worktree)
301-
302295
include::config/add.txt[]
303296

304297
include::config/alias.txt[]

Documentation/gitrepository-layout.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ worktrees/<id>/locked::
290290
worktrees/<id>/config.worktree::
291291
Working directory specific configuration file.
292292

293+
include::technical/repository-version.txt[]
294+
293295
SEE ALSO
294296
--------
295297
linkgit:git-init[1],

Documentation/technical/repository-version.txt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Git Repository Format Versions
2-
==============================
1+
== Git Repository Format Versions
32

43
Every git repository is marked with a numeric version in the
54
`core.repositoryformatversion` key of its `config` file. This version
@@ -40,16 +39,14 @@ format by default.
4039

4140
The currently defined format versions are:
4241

43-
Version `0`
44-
-----------
42+
=== Version `0`
4543

4644
This is the format defined by the initial version of git, including but
4745
not limited to the format of the repository directory, the repository
4846
configuration file, and the object and ref storage. Specifying the
4947
complete behavior of git is beyond the scope of this document.
5048

51-
Version `1`
52-
-----------
49+
=== Version `1`
5350

5451
This format is identical to version `0`, with the following exceptions:
5552

@@ -74,21 +71,18 @@ it here, in order to claim the name.
7471

7572
The defined extensions are:
7673

77-
`noop`
78-
~~~~~~
74+
==== `noop`
7975

8076
This extension does not change git's behavior at all. It is useful only
8177
for testing format-1 compatibility.
8278

83-
`preciousObjects`
84-
~~~~~~~~~~~~~~~~~
79+
==== `preciousObjects`
8580

8681
When the config key `extensions.preciousObjects` is set to `true`,
8782
objects in the repository MUST NOT be deleted (e.g., by `git-prune` or
8883
`git repack -d`).
8984

90-
`partialclone`
91-
~~~~~~~~~~~~~~
85+
==== `partialclone`
9286

9387
When the config key `extensions.partialclone` is set, it indicates
9488
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
9892
in the future.
9993

10094
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

Comments
 (0)