<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/worktree.c, 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-09-27T17:51:33Z</updated>
<entry>
<title>worktree: honor configuration variables</title>
<updated>2016-09-27T17:51:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-09-27T06:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d49028e6e7ad02a0fc2622487abc46312d9b42f4'/>
<id>urn:sha1:d49028e6e7ad02a0fc2622487abc46312d9b42f4</id>
<content type='text'>
The command accesses default_abbrev (defined in environment.c and is
updated via core.abbrev configuration), but never makes any call to
git_config().  The output from "worktree list" ignores the abbrev
setting for this reason.

Make a call to git_config() to read the default set of configuration
variables at the beginning of the command.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use CHILD_PROCESS_INIT to initialize automatic variables</title>
<updated>2016-08-05T22:10:05Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-08-05T20:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=542aa25d9748c381a27074fb08614d4cb4713984'/>
<id>urn:sha1:542aa25d9748c381a27074fb08614d4cb4713984</id>
<content type='text'>
Initialize struct child_process variables already when they're defined.
That's shorter and saves a function call.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&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: 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>avoid using sha1_to_hex output as printf format</title>
<updated>2016-07-08T17:11:27Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-07-08T10:35:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dabd35f4cdd8bcfa502d082da5a3e4b927a2b329'/>
<id>urn:sha1:dabd35f4cdd8bcfa502d082da5a3e4b927a2b329</id>
<content type='text'>
We know that it should not contain any percent-signs, but
it's a good habit not to feed non-literals to printf
formatters.

Signed-off-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 '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>worktree: simplify prefixing paths</title>
<updated>2016-05-24T20:19:23Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-05-22T09:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0409e0b6dc169b07c05d02e8b62389b1cc975a45'/>
<id>urn:sha1:0409e0b6dc169b07c05d02e8b62389b1cc975a45</id>
<content type='text'>
This also makes slash conversion always happen on Windows (a side effect
of prefix_filename). Which is a good thing.

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: avoid 0{40}, too many zeroes, hard to read</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:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef23c347cf363118e236ae72fe6372443fae1ecf'/>
<id>urn:sha1:ef23c347cf363118e236ae72fe6372443fae1ecf</id>
<content type='text'>
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>
</feed>
