<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-worktree.txt, branch v2.37.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.37.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.37.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-04-04T17:56:25Z</updated>
<entry>
<title>Merge branch 'pw/worktree-list-with-z'</title>
<updated>2022-04-04T17:56:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-04-04T17:56:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7c6d8ee8fa3be77d4bf4d38f59e866a0af1931f8'/>
<id>urn:sha1:7c6d8ee8fa3be77d4bf4d38f59e866a0af1931f8</id>
<content type='text'>
"git worktree list --porcelain" did not c-quote pathnames and lock
reasons with unsafe bytes correctly, which is worked around by
introducing NUL terminated output format with "-z".

* pw/worktree-list-with-z:
  worktree: add -z option for list subcommand
</content>
</entry>
<entry>
<title>worktree: add -z option for list subcommand</title>
<updated>2022-03-31T20:28:55Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2022-03-31T16:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d97eb302ea848ff6f8f9af50a176734930964b9a'/>
<id>urn:sha1:d97eb302ea848ff6f8f9af50a176734930964b9a</id>
<content type='text'>
Add a -z option to be used in conjunction with --porcelain that gives
NUL-terminated output. As 'worktree list --porcelain' does not quote
worktree paths this enables it to handle worktree paths that contain
newlines.

Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:42Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=07d85380b21653b949f2777903e44aaf0fdb6c44'/>
<id>urn:sha1:07d85380b21653b949f2777903e44aaf0fdb6c44</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the last of multiple changes to git-worktree.txt, starting at
the LIST OUTPUT FORMAT section.

The EXAMPLES section has an instance of "working tree" that must stay as
it is, because it is not talking about a worktree, but an example of why
a user might want to create a worktree.

Helped-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:42Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f13a146c81e361eab43cd095c80c01562b6016de'/>
<id>urn:sha1:f13a146c81e361eab43cd095c80c01562b6016de</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the sixth of multiple changes to git-worktree.txt, restricted to
the DETAILS section.

Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:42Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b215826f32f9fd0dc58703f012326dba6006e34'/>
<id>urn:sha1:7b215826f32f9fd0dc58703f012326dba6006e34</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the fifth of multiple changes to git-worktree.txt, restricted to
the CONFIGURATION FILE section.

While here, clear up some language to improve readability.

Helped-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:42Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a777d4c75061f99ae16246835db9d0750ce01d4c'/>
<id>urn:sha1:a777d4c75061f99ae16246835db9d0750ce01d4c</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the fourth of multiple changes to git-worktree.txt, restricted
to the REFS section.

This section previously described "per working tree" refs but they are
now replaced with "per-worktree" refs, which matches the definition in
glossary-content.txt.

The first paragraph of this section was also a bit confusing, so it is
cleaned up to make it easier to understand.

Helped-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:42Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6036be14581878c42158407a9f3344d63f090057'/>
<id>urn:sha1:6036be14581878c42158407a9f3344d63f090057</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the third of multiple changes to git-worktree.txt, restricted to
the OPTIONS section.

Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:41Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=599701441e5e7853339306f56e82cb02543d53a7'/>
<id>urn:sha1:599701441e5e7853339306f56e82cb02543d53a7</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the second of multiple changes to git-worktree.txt, restricted
to the COMMANDS section.

There is some language around the movement of "the working tree of a
linked worktree" which is used once, but the remaining uses are left as
just moving "a linked worktree" for brevity.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: use 'worktree' over 'working tree'</title>
<updated>2022-02-23T20:24:41Z</updated>
<author>
<name>Derrick Stolee</name>
<email>derrickstolee@github.com</email>
</author>
<published>2022-02-23T14:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c57bf8ce9e6f41947e661fdecef3736aa816c50e'/>
<id>urn:sha1:c57bf8ce9e6f41947e661fdecef3736aa816c50e</id>
<content type='text'>
It is helpful to distinguish between a 'working tree' and a 'worktree'.
A worktree contains a working tree plus additional metadata. This
metadata includes per-worktree refs and worktree-specific config.

This is the first of multiple changes to git-worktree.txt, restricted to
the DESCRIPTION section.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Derrick Stolee &lt;derrickstolee@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: add extensions.worktreeConfig details</title>
<updated>2022-02-08T17:49:20Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2022-02-07T21:32:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5c11c0d52c398af65f19bcf65a46304552083214'/>
<id>urn:sha1:5c11c0d52c398af65f19bcf65a46304552083214</id>
<content type='text'>
The extensions.worktreeConfig extension was added in 58b284a (worktree:
add per-worktree config files, 2018-10-21) and was somewhat documented
in Documentation/git-config.txt. However, the extensions.worktreeConfig
value was not specified further in the list of possible config keys. The
location of the config.worktree file is not specified, and there are
some precautions that should be mentioned clearly, but are only
mentioned in git-worktree.txt.

Expand the documentation to help users discover the complexities of
extensions.worktreeConfig by adding details and cross links in these
locations (relative to Documentation/):

- config/extensions.txt
- git-config.txt
- git-worktree.txt

The updates focus on items such as

* $GIT_DIR/config.worktree takes precedence over $GIT_COMMON_DIR/config.

* The core.worktree and core.bare=true settings are incorrect to have in
  the common config file when extensions.worktreeConfig is enabled.

* The sparse-checkout settings core.sparseCheckout[Cone] are recommended
  to be set in the worktree config.

As documented in 11664196ac ("Revert "check_repository_format_gently():
refuse extensions for old repositories"", 2020-07-15), this extension
must be considered regardless of the repository format version for
historical reasons.

A future change will update references to extensions.worktreeConfig
within git-sparse-checkout.txt, but a behavior change is needed before
making those updates.

Helped-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Reviewed-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
