<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-worktree.txt, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-01-11T20:19:40Z</updated>
<entry>
<title>Documentation/git-worktree.txt: add missing `</title>
<updated>2018-01-11T20:19:40Z</updated>
<author>
<name>Ralf Thielow</name>
<email>ralf.thielow@gmail.com</email>
</author>
<published>2018-01-11T18:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=50fdf7b1b12c801ded04c31c108ece9a9570a9ec'/>
<id>urn:sha1:50fdf7b1b12c801ded04c31c108ece9a9570a9ec</id>
<content type='text'>
Signed-off-by: Ralf Thielow &lt;ralf.thielow@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add worktree.guessRemote config option</title>
<updated>2017-12-06T17:47:35Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2017-11-29T20:04:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e92445a73173cf21a11b8e79cb7be16485deec69'/>
<id>urn:sha1:e92445a73173cf21a11b8e79cb7be16485deec69</id>
<content type='text'>
Some users might want to have the --guess-remote option introduced in
the previous commit on by default, so they don't have to type it out
every time they create a new worktree.

Add a config option worktree.guessRemote that allows users to configure
the default behaviour for themselves.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add --guess-remote flag to add subcommand</title>
<updated>2017-12-06T17:47:35Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2017-11-29T20:04:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=71d6682d8ca9870cbe457cf55c83402c33b41030'/>
<id>urn:sha1:71d6682d8ca9870cbe457cf55c83402c33b41030</id>
<content type='text'>
Currently 'git worktree add &lt;path&gt;' creates a new branch named after the
basename of the &lt;path&gt;, that matches the HEAD of whichever worktree we
were on when calling "git worktree add &lt;path&gt;".

It's sometimes useful to have 'git worktree add &lt;path&gt; behave more like
the dwim machinery in 'git checkout &lt;new-branch&gt;', i.e. check if the new
branch name, derived from the basename of the &lt;path&gt;, uniquely matches
the branch name of a remote-tracking branch, and if so check out that
branch and set the upstream to the remote-tracking branch.

Add a new --guess-remote option that enables exactly that behaviour.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: make add &lt;path&gt; &lt;branch&gt; dwim</title>
<updated>2017-11-27T00:48:06Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2017-11-26T19:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e8533319760c1e9255c56c2059c721286dc8dab'/>
<id>urn:sha1:4e8533319760c1e9255c56c2059c721286dc8dab</id>
<content type='text'>
Currently 'git worktree add &lt;path&gt; &lt;branch&gt;', errors out when 'branch'
is not a local branch.  It has no additional dwim'ing features that one
might expect.

Make it behave more like 'git checkout &lt;branch&gt;' when the branch doesn't
exist locally, but a remote tracking branch uniquely matches the desired
branch name, i.e. create a new branch from the remote tracking branch
and set the upstream to the remote tracking branch.

As 'git worktree add' currently just dies in this situation, there are
no backwards compatibility worries when introducing this feature.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add --[no-]track option to the add subcommand</title>
<updated>2017-11-27T00:48:06Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2017-11-26T19:43:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e284e892ca278e4eb1e7eabd53a000bc897c3f25'/>
<id>urn:sha1:e284e892ca278e4eb1e7eabd53a000bc897c3f25</id>
<content type='text'>
Currently 'git worktree add' sets up tracking branches if '&lt;branch&gt;' is
a remote tracking branch, and doesn't set them up otherwise, as is the
default for 'git branch'.

This may or may not be what the user wants.  Allow overriding this
behaviour with a --[no-]track flag that gets passed through to 'git
branch'.

We already respect branch.autoSetupMerge, as 'git worktree' just calls
'git branch' internally.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add can be created from any commit-ish</title>
<updated>2017-11-27T00:48:06Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2017-11-26T19:43:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c4738aedc0aee085e25e20b6c32b9c4680f265d1'/>
<id>urn:sha1:c4738aedc0aee085e25e20b6c32b9c4680f265d1</id>
<content type='text'>
Currently 'git worktree add' is documented to take an optional &lt;branch&gt;
argument, which is checked out in the new worktree.  However it is more
generally possible to use a commit-ish as the optional argument, and
check that out into the new worktree.

Document that this is a possibility, as new users of git worktree add
might find it helpful.

Reported-by: Randall S. Becker &lt;rsbecker@nexbridge.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree add: add --lock option</title>
<updated>2017-04-21T00:59:02Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2017-04-12T13:58:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=507e6e9eecce5e7a2cc204c844bbb2f9b17b31e3'/>
<id>urn:sha1:507e6e9eecce5e7a2cc204c844bbb2f9b17b31e3</id>
<content type='text'>
As explained in the document. This option has an advantage over the
command sequence "git worktree add &amp;&amp; git worktree lock": there will be
no gap that somebody can accidentally "prune" the new worktree (or soon,
explicitly "worktree remove" it).

"worktree add" does keep a lock on while it's preparing the worktree.
If --lock is specified, this lock remains after the worktree is created.

Suggested-by: David Taylor &lt;David.Taylor@dell.com&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/worktree-doc-fix-detached'</title>
<updated>2017-02-24T18:48:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-24T18:48:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc9ded480245c1014b526c4b951d1acb3a60d3fa'/>
<id>urn:sha1:dc9ded480245c1014b526c4b951d1acb3a60d3fa</id>
<content type='text'>
Doc update.

* bc/worktree-doc-fix-detached:
  Documentation: correctly spell git worktree --detach
</content>
</entry>
<entry>
<title>Documentation: correctly spell git worktree --detach</title>
<updated>2017-02-22T18:08:38Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-02-22T12:34:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9993a7c5f132d4f7c9cf93509cba6737ca131ef4'/>
<id>urn:sha1:9993a7c5f132d4f7c9cf93509cba6737ca131ef4</id>
<content type='text'>
The option is “--detach”, but we accidentally spelled it “--detached” at
one point in the man page.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Reported-by: Casey Rodarmor &lt;casey@rodarmor.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/worktree-lock'</title>
<updated>2016-11-17T21:45:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-11-17T21:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=166251c32e69e9a66913c62e9263135f8ae103e6'/>
<id>urn:sha1:166251c32e69e9a66913c62e9263135f8ae103e6</id>
<content type='text'>
Typofix.

* nd/worktree-lock:
  git-worktree.txt: fix typo "to"/"two", and add comma
</content>
</entry>
</feed>
