<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-worktree.txt, branch v2.10.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.10.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.10.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-07-28T17:34:42Z</updated>
<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>
<entry>
<title>git-worktree.txt: keep subcommand listing in alphabetical order</title>
<updated>2016-05-24T20:19:22Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-05-22T09:33:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b722d906bd5b32f3c7a63fb77835b38c1e04e4a'/>
<id>urn:sha1:7b722d906bd5b32f3c7a63fb77835b38c1e04e4a</id>
<content type='text'>
This is probably not the best order. But it makes it no-brainer to know
where to insert new commands. At some point we might want to reorder at
least the synopsis part again, grouping commonly use subcommands together.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Reviewed-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: introduce --checkout option</title>
<updated>2016-03-29T18:12:36Z</updated>
<author>
<name>Ray Zhang</name>
<email>zhanglei002@gmail.com</email>
</author>
<published>2016-03-29T10:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef2a0ac9a00c5d82f1fbbef8304c662ff60e4235'/>
<id>urn:sha1:ef2a0ac9a00c5d82f1fbbef8304c662ff60e4235</id>
<content type='text'>
By adding this option which defaults to true, we can use the
corresponding --no-checkout to make some customizations before
the checkout, like sparse checkout, etc.

Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Ray Zhang &lt;zhanglei002@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>worktree: stop supporting moving worktrees manually</title>
<updated>2016-01-22T22:28:42Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-01-22T08:35:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=618244e160cb0777bc8d41055f7de0192b10ea0f'/>
<id>urn:sha1:618244e160cb0777bc8d41055f7de0192b10ea0f</id>
<content type='text'>
The current update_linked_gitdir() has a bug that can create "gitdir"
file in non-multi-worktree setup. Worse, sometimes it can write relative
path to "gitdir" file, which will not work (e.g. "git worktree list"
will display the worktree's location incorrectly)

Instead of fixing this, we step back a bit. The original design was
probably not well thought out. For now, if the user manually moves a
worktree, they have to fix up "gitdir" file manually or the worktree
will get pruned.

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>worktree: add 'list' command</title>
<updated>2015-10-08T18:57:14Z</updated>
<author>
<name>Michael Rappazzo</name>
<email>rappazzo@gmail.com</email>
</author>
<published>2015-10-08T17:01:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb9c03b82add467592249a222018a150684a4c97'/>
<id>urn:sha1:bb9c03b82add467592249a222018a150684a4c97</id>
<content type='text'>
'git worktree list' iterates through the worktree list, and outputs
details of the worktree including the path to the worktree, the currently
checked out revision and branch, and if the work tree is bare.  There is
also porcelain format option available.

Signed-off-by: Michael Rappazzo &lt;rappazzo@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
