<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-worktree.txt, branch v2.5.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.5.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.5.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-07-16T22:59:48Z</updated>
<entry>
<title>worktree: caution that this is still experimental</title>
<updated>2015-07-16T22:59:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-07-16T22:59:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=18b22dbed8e106cfc7899d1c606c1f7c12de6404'/>
<id>urn:sha1:18b22dbed8e106cfc7899d1c606c1f7c12de6404</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-worktree: fix stale "git checkout --to" references</title>
<updated>2015-07-16T22:59:17Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-16T22:09:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4d5a3c588480953bd94dcc68ff198ad78e562c46'/>
<id>urn:sha1:4d5a3c588480953bd94dcc68ff198ad78e562c46</id>
<content type='text'>
These should have been changed to "git worktree add" by fc56361
(worktree: introduce "add" command, 2015-07-06.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add: auto-vivify new branch when &lt;branch&gt; is omitted</title>
<updated>2015-07-07T21:34:32Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1eb07d829f3f0992c93c6b44fdcc4e95ebab12f3'/>
<id>urn:sha1:1eb07d829f3f0992c93c6b44fdcc4e95ebab12f3</id>
<content type='text'>
As a convenience, when &lt;branch&gt; is omitted from "git worktree &lt;path&gt;
&lt;branch&gt;" and neither -b nor -B is used, automatically create a new
branch named after &lt;path&gt;, as if "-b $(basename &lt;path&gt;)" was specified.
Thus, "git worktree add ../hotfix" creates a new branch named "hotfix"
and associates it with new worktree "../hotfix".

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add: make -b/-B default to HEAD when &lt;branch&gt; is omitted</title>
<updated>2015-07-06T18:07:48Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f4af3b9ea1fc62e445271bb2e7fbb8e1ac230b7'/>
<id>urn:sha1:0f4af3b9ea1fc62e445271bb2e7fbb8e1ac230b7</id>
<content type='text'>
As a convenience, like "git branch" and "git checkout -b", make
"git worktree add -b &lt;newbranch&gt; &lt;path&gt; &lt;branch&gt;" default to HEAD when
&lt;branch&gt; is omitted.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add -b/-B options</title>
<updated>2015-07-06T18:07:47Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cbdf60fa183e3a2330849046846b400ef4a99c3b'/>
<id>urn:sha1:cbdf60fa183e3a2330849046846b400ef4a99c3b</id>
<content type='text'>
One of git-worktree's roles is to populate the new worktree, much like
git-checkout, and thus, for convenience, ought to support several of the
same shortcuts. Toward this goal, add -b/-B options to create a new
branch and check it out in the new worktree.

(For brevity, only -b is mentioned in the synopsis; -B is omitted.)

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add --detach option</title>
<updated>2015-07-06T18:07:46Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=39ecb27436296361371d3caadcc9bc4a4e0b556d'/>
<id>urn:sha1:39ecb27436296361371d3caadcc9bc4a4e0b556d</id>
<content type='text'>
One of git-worktree's roles is to populate the new worktree, much like
git-checkout, and thus, for convenience, ought to support several of the
same shortcuts. Toward this goal, add a --detach option to detach HEAD
in the new worktree.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add --force option</title>
<updated>2015-07-06T18:07:46Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f43254440d56da1fd52216cbebd5c285b20985e6'/>
<id>urn:sha1:f43254440d56da1fd52216cbebd5c285b20985e6</id>
<content type='text'>
By default, "git worktree add" refuses to create a new worktree when
the requested branch is already checked out elsewhere. Add a --force
option to override this safeguard.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: introduce "add" command</title>
<updated>2015-07-06T18:07:45Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc56361f58a20f1259e1ba2364424ec27825c37f'/>
<id>urn:sha1:fc56361f58a20f1259e1ba2364424ec27825c37f</id>
<content type='text'>
The plan is to relocate "git checkout --to" functionality to "git
worktree add". As a first step, introduce a bare-bones git-worktree
"add" command along with documentation. At this stage, "git worktree
add" merely invokes "git checkout --to" behind the scenes, but an
upcoming patch will move the actual functionality
(checkout.c:prepare_linked_checkout() and its helpers) to worktree.c.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-worktree: add EXAMPLES section</title>
<updated>2015-07-06T18:07:44Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=96454597562dade701fbfee19891482a97456138'/>
<id>urn:sha1:96454597562dade701fbfee19891482a97456138</id>
<content type='text'>
Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-worktree: add high-level 'lock' overview</title>
<updated>2015-07-06T18:07:43Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2015-07-06T17:30:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8ba5dd7b18ed3a3276ee23ab66569dbddc50913'/>
<id>urn:sha1:a8ba5dd7b18ed3a3276ee23ab66569dbddc50913</id>
<content type='text'>
Due to the (current) absence of a "git worktree lock" command, locking
a worktree's administrative files to prevent automatic pruning is a
manual task, necessarily requiring low-level understanding of linked
worktree functionality. However, this level of detail does not belong
in the high-level DESCRIPTION section, so add a generalized discussion
of locking to DESCRIPTION and move the technical information to DETAILS.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
