<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-worktree.txt, branch v2.12.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.12.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.12.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-02-24T18:48:10Z</updated>
<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>
<entry>
<title>git-worktree.txt: fix typo "to"/"two", and add comma</title>
<updated>2016-11-14T01:56:56Z</updated>
<author>
<name>Ben North</name>
<email>ben@redfrontdoor.org</email>
</author>
<published>2016-11-12T08:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2b090822e8d4d2002499bb0fb02a611bb2c775a9'/>
<id>urn:sha1:2b090822e8d4d2002499bb0fb02a611bb2c775a9</id>
<content type='text'>
Signed-off-by: Ben North &lt;ben@redfrontdoor.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/worktree-lock'</title>
<updated>2016-07-28T17:34:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-28T17:34:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c608e0f7c1f0fb9fb3e42eb737d7b8543e11400'/>
<id>urn:sha1:2c608e0f7c1f0fb9fb3e42eb737d7b8543e11400</id>
<content type='text'>
"git worktree prune" protected worktrees that are marked as
"locked" by creating a file in a known location.  "git worktree"
command learned a dedicated command pair to create and remove such
a file, so that the users do not have to do this with editor.

* nd/worktree-lock:
  worktree.c: find_worktree() search by path suffix
  worktree: add "unlock" command
  worktree: add "lock" command
  worktree.c: add is_worktree_locked()
  worktree.c: add is_main_worktree()
  worktree.c: add find_worktree()
</content>
</entry>
<entry>
<title>worktree.c: find_worktree() search by path suffix</title>
<updated>2016-07-08T22:31:04Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-06-13T12:18:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=080739ba1db7897dde53427937acc011ea98a006'/>
<id>urn:sha1:080739ba1db7897dde53427937acc011ea98a006</id>
<content type='text'>
This allows the user to do something like "worktree lock foo" or
"worktree lock to/foo" instead of "worktree lock /long/path/to/foo" if
it's unambiguous.

With completion support it could be quite convenient. While this base
name search can be done in the same worktree iteration loop, the code is
split into a separate function for clarity.

Suggested-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add "unlock" command</title>
<updated>2016-07-08T22:31:04Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-06-13T12:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d308627cae4d34c058591de73ce14a52b79cf4e'/>
<id>urn:sha1:6d308627cae4d34c058591de73ce14a52b79cf4e</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: add "lock" command</title>
<updated>2016-07-08T22:31:04Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-06-13T12:18:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5'/>
<id>urn:sha1:58142c09a4fe825912e5a2ebfa1ba5f7f6d8beb5</id>
<content type='text'>
Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/worktree-cleanup-post-head-protection'</title>
<updated>2016-07-06T20:38:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-06T20:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7a738b40f67fc44c2a2c1abcffe474241af3d30e'/>
<id>urn:sha1:7a738b40f67fc44c2a2c1abcffe474241af3d30e</id>
<content type='text'>
Further preparatory clean-up for "worktree" feature continues.

* nd/worktree-cleanup-post-head-protection:
  worktree: simplify prefixing paths
  worktree: avoid 0{40}, too many zeroes, hard to read
  worktree.c: use is_dot_or_dotdot()
  git-worktree.txt: keep subcommand listing in alphabetical order
  worktree.c: rewrite mark_current_worktree() to avoid strbuf
  completion: support git-worktree
</content>
</entry>
<entry>
<title>worktree: allow "-" short-hand for @{-1} in add command</title>
<updated>2016-05-31T19:28:25Z</updated>
<author>
<name>Jordan DE GEA</name>
<email>jordan.de-gea@grenoble-inp.org</email>
</author>
<published>2016-05-27T13:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a450e2fd1f82311b214851d5b097b74c8fb0ade'/>
<id>urn:sha1:1a450e2fd1f82311b214851d5b097b74c8fb0ade</id>
<content type='text'>
Since `git worktree add` uses `git checkout` when `[&lt;branch&gt;]` is used,
and `git checkout -` is already supported, it makes sense to allow the
same shortcut in `git worktree add`.

Signed-off-by: Jordan DE GEA &lt;jordan.de-gea@grenoble-inp.org&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@grenoble-inp.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
