<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-add--interactive.perl, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-20T10:39:38Z</updated>
<entry>
<title>Merge branch 'mm/maint-add-p-quit'</title>
<updated>2009-04-20T10:39:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-20T10:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=21590d5262f71b336926a9d2cec5b04b0aa6c4a0'/>
<id>urn:sha1:21590d5262f71b336926a9d2cec5b04b0aa6c4a0</id>
<content type='text'>
* mm/maint-add-p-quit:
  git add -p: add missing "q" to patch prompt
</content>
</entry>
<entry>
<title>git add -p: add missing "q" to patch prompt</title>
<updated>2009-04-20T10:38:44Z</updated>
<author>
<name>Wincent Colaiuta</name>
<email>win@wincent.com</email>
</author>
<published>2009-04-20T09:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a2fc8d65368a23a8a5f708b36c761c2d0d133ea6'/>
<id>urn:sha1:a2fc8d65368a23a8a5f708b36c761c2d0d133ea6</id>
<content type='text'>
Commit cbd3a01 added a new "q" subcommand to the "git add -p"
command loop, but forgot to add it to the prompt.

Signed-off-by: Wincent Colaiuta &lt;win@wincent.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-interactive: refactor mode hunk handling</title>
<updated>2009-04-19T19:35:38Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-04-16T07:14:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7535e5a16aa7167074ac74ee1342814767a83a82'/>
<id>urn:sha1:7535e5a16aa7167074ac74ee1342814767a83a82</id>
<content type='text'>
The original implementation considered the mode separately
from the rest of the hunks, asking about it outside the main
hunk-selection loop. This patch instead places a mode change
as the first hunk in the loop. This has two advantages:

  1. less duplicated code (since we use the main selection
     loop). This also cleans up an inconsistency, which is
     that the main selection loop separates options with a
     comma, whereas the mode prompt used slashes.

  2. users can now skip the mode change and come back to it,
     search for it (via "/mode"), etc, as they can with other
     hunks.

To facilitate this, each hunk is now marked with a "type".
Mode hunks are not considered for splitting (which would
make no sense, and also confuses the split_hunk function),
nor are they editable. In theory, one could edit the mode
lines and change to a new mode. In practice, there are only
two modes that git cares about (0644 and 0755), so either
you want to move from one to the other or not (and you can
do that by staging or not staging).

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>git add -p: new "quit" command at the prompt.</title>
<updated>2009-04-19T19:35:37Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2009-04-10T14:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cbd3a01ed803778b2377e0148448f7e617bc381a'/>
<id>urn:sha1:cbd3a01ed803778b2377e0148448f7e617bc381a</id>
<content type='text'>
There's already 'd' to stop staging hunks in a file, but no explicit
command to stop the interactive staging (for the current files and the
remaining ones).  Of course you can do 'd' and then ^C, but it would be
more intuitive to allow 'quit' action.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add-interactive: refactor mode hunk handling</title>
<updated>2009-04-16T08:06:52Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-04-16T07:14:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0392513fdc7e98f5ca5dff1ad80962c28029267b'/>
<id>urn:sha1:0392513fdc7e98f5ca5dff1ad80962c28029267b</id>
<content type='text'>
The original implementation considered the mode separately
from the rest of the hunks, asking about it outside the main
hunk-selection loop. This patch instead places a mode change
as the first hunk in the loop. This has two advantages:

  1. less duplicated code (since we use the main selection
     loop). This also cleans up an inconsistency, which is
     that the main selection loop separates options with a
     comma, whereas the mode prompt used slashes.

  2. users can now skip the mode change and come back to it,
     search for it (via "/mode"), etc, as they can with other
     hunks.

To facilitate this, each hunk is now marked with a "type".
Mode hunks are not considered for splitting (which would
make no sense, and also confuses the split_hunk function),
nor are they editable. In theory, one could edit the mode
lines and change to a new mode. In practice, there are only
two modes that git cares about (0644 and 0755), so either
you want to move from one to the other or not (and you can
do that by staging or not staging).

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>git add -p: new "quit" command at the prompt.</title>
<updated>2009-04-16T02:41:35Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2009-04-10T14:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a7a1e03d5e530cdad98c41c109e3319c008ce69'/>
<id>urn:sha1:9a7a1e03d5e530cdad98c41c109e3319c008ce69</id>
<content type='text'>
There's already 'd' to stop staging hunks in a file, but no explicit
command to stop the interactive staging (for the current files and the
remaining ones).  Of course you can do 'd' and then ^C, but it would be
more intuitive to allow 'quit' action.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/add-p-unquote'</title>
<updated>2009-03-05T23:41:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-05T23:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db2255725deb26a1b71d908bef5533f6f76a642a'/>
<id>urn:sha1:db2255725deb26a1b71d908bef5533f6f76a642a</id>
<content type='text'>
* jc/add-p-unquote:
  git-add -i/-p: learn to unwrap C-quoted paths
</content>
</entry>
<entry>
<title>git-add -i/-p: learn to unwrap C-quoted paths</title>
<updated>2009-02-18T18:53:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-17T06:43:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8851f4800c15fe91b6a53e9e284787b983226c41'/>
<id>urn:sha1:8851f4800c15fe91b6a53e9e284787b983226c41</id>
<content type='text'>
The underlying plumbing commands are not run with -z option, so the paths
returned from them need to be unquoted as needed.

Remove the now stale BUGS section from git-add documentaiton as suggested
by Teemu Likonen.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add -i: revisit hunk on editor failure</title>
<updated>2009-02-12T07:51:15Z</updated>
<author>
<name>Deskin Miller</name>
<email>deskinm@umich.edu</email>
</author>
<published>2009-02-12T05:19:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d398a03902aab8ec49197d8827c19f9e2203c98'/>
<id>urn:sha1:1d398a03902aab8ec49197d8827c19f9e2203c98</id>
<content type='text'>
Similar to the behaviour for editing a commit message, let terminating
the editor with a failure abort the current hunk edit and revisit the
option selection for the hunk.

Signed-off-by: Deskin Miller &lt;deskinm@umich.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add -p: get rid of Git.pm warnings about unitialized values</title>
<updated>2009-02-08T21:06:33Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2009-02-08T17:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9aad6cbaef3c459ff4953f5a22bbbc7abfc72800'/>
<id>urn:sha1:9aad6cbaef3c459ff4953f5a22bbbc7abfc72800</id>
<content type='text'>
After invoking git add -p I always got the warnings:

 Use of uninitialized value $_[3] in exec at Git.pm line 1282.
 Use of uninitialized value $args[2] in join or string at Git.pm line 1264.

A bisect showed that these warnings occur in a301973 "add -p: print errors
in separate color" the first time.

They can be reproduced by setting color.ui (or color.interactive) to "auto"
and unsetting color.interactive.help and color.interactive.error.
I am using Perl 5.10.0.

The reason of the warning is that color.interactive.error defaults to
color.interactive.help which defaults to nothing in the specific codepath.
It defaults to 'red bold' some lines above which could lead to the wrong
assumption that it always defaults to 'red bold' now.

This patch lets it default to 'red bold', blowing the warnings away.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Acked-By: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
