<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-add--interactive.perl, 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-16T20:32:45Z</updated>
<entry>
<title>add--interactive: ignore submodule changes except HEAD</title>
<updated>2018-01-16T20:32:45Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-01-13T12:10:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=12434efc1d4a83d768e8b60bfdb711780677a308'/>
<id>urn:sha1:12434efc1d4a83d768e8b60bfdb711780677a308</id>
<content type='text'>
For 'add -i' and 'add -p', the only action we can take on a dirty
submodule entry is update the index with a new value from its HEAD. The
content changes inside (from its own index, untracked files...) do not
matter, at least until 'git add -i' learns about launching a new
interactive add session inside a submodule.

Ignore all other submodules changes except HEAD. This reduces the number
of entries the user has to check through in 'git add -i', and the number
of 'no' they have to answer to 'git add -p' when dirty submodules are
present.

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 'pw/unquote-path-in-git-pm'</title>
<updated>2017-07-10T20:42:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-10T20:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9bf8e0c73d28eeede51f8d5cb75865eb544e7d47'/>
<id>urn:sha1:9bf8e0c73d28eeede51f8d5cb75865eb544e7d47</id>
<content type='text'>
Code refactoring.

* pw/unquote-path-in-git-pm:
  t9700: add tests for Git::unquote_path()
  Git::unquote_path(): throw an exception on bad path
  Git::unquote_path(): handle '\a'
  add -i: move unquote_path() to Git.pm
</content>
</entry>
<entry>
<title>add -i: move unquote_path() to Git.pm</title>
<updated>2017-06-30T15:02:20Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2017-06-30T09:49:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d542a5487f788874f18cca0d23b7b680fa04119'/>
<id>urn:sha1:1d542a5487f788874f18cca0d23b7b680fa04119</id>
<content type='text'>
Move unquote_path() from git-add--interactive to Git.pm so it can be
used by other scripts. Note this is a straight copy, it does not
handle '\a'. That will be fixed in the next commit.

Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/add-p-commentchar-fix'</title>
<updated>2017-06-26T21:09:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-26T21:09:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=54e6ce5960689026f1ea97db493dc8cd0a7f8e1e'/>
<id>urn:sha1:54e6ce5960689026f1ea97db493dc8cd0a7f8e1e</id>
<content type='text'>
"git add -p" were updated in 2.12 timeframe to cope with custom
core.commentchar but the implementation was buggy and a
metacharacter like $ and * did not work.

* jk/add-p-commentchar-fix:
  add--interactive: quote commentChar regex
  add--interactive: handle EOF in prompt_yesno
</content>
</entry>
<entry>
<title>add--interactive: quote commentChar regex</title>
<updated>2017-06-21T21:06:20Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-06-21T19:28:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d85d7ecb80ebc93f7380b4196c303756ee051668'/>
<id>urn:sha1:d85d7ecb80ebc93f7380b4196c303756ee051668</id>
<content type='text'>
Since c9d961647 (i18n: add--interactive: mark
edit_hunk_manually message for translation, 2016-12-14),
when the user asks to edit a hunk manually, we respect
core.commentChar in generating the edit instructions.
However, when we then strip out comment lines, we use a
simple regex like:

  /^$commentChar/

If your chosen comment character is a regex metacharacter,
then that will behave in a confusing manner ("$", for
instance, would only eliminate blank lines, not actual
comment lines).

We can fix that by telling perl not to respect
metacharacters.

Reported-by: Christian Rösch &lt;christian@croesch.de&gt;
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>add--interactive: handle EOF in prompt_yesno</title>
<updated>2017-06-21T21:06:09Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-06-21T19:26:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d5addcf522deb05d259ecbc0946584d977879565'/>
<id>urn:sha1:d5addcf522deb05d259ecbc0946584d977879565</id>
<content type='text'>
The prompt_yesno function loops indefinitely waiting for a
"y" or "n" response. But it doesn't handle EOF, meaning
that we can end up in an infinite loop of reading EOF from
stdin. One way to simulate that is with:

  echo e | GIT_EDITOR='echo corrupt &gt;' git add -p

Let's break out of the loop and propagate the undef to the
caller. Without modifying the callers that effectively turns
it into a "no" response. This is reasonable for both of the
current callers, and it leaves room for any future caller to
check for undef explicitly.

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>add--interactive: drop diff.indentHeuristic handling</title>
<updated>2017-05-09T03:24:35Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-05-08T16:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1fa8a66bf76953c6fb9cfe5e17b26a3a0920f538'/>
<id>urn:sha1:1fa8a66bf76953c6fb9cfe5e17b26a3a0920f538</id>
<content type='text'>
Now that diff.indentHeuristic is handled automatically by the plumbing
commands, there's no need to propagate it manually.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Marc Branchaud &lt;marcnarc@xiplink.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'va/i18n-perl-scripts'</title>
<updated>2017-04-20T04:37:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-04-20T04:37:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34130cc06b478d824cc428c33796f620dd0c7424'/>
<id>urn:sha1:34130cc06b478d824cc428c33796f620dd0c7424</id>
<content type='text'>
Message fix.

* va/i18n-perl-scripts:
  git-add--interactive.perl: add missing dot in a message
</content>
</entry>
<entry>
<title>git-add--interactive.perl: add missing dot in a message</title>
<updated>2017-04-14T01:01:15Z</updated>
<author>
<name>Ralf Thielow</name>
<email>ralf.thielow@gmail.com</email>
</author>
<published>2017-04-13T16:41:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0301f1fd92f4086a3557afa14f3e209787964b4d'/>
<id>urn:sha1:0301f1fd92f4086a3557afa14f3e209787964b4d</id>
<content type='text'>
One message appears twice in the translations and the only
difference is a dot at the end.  So add this dot to make
the messages being identical.

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>Merge branch 'jk/add-i-use-pathspecs'</title>
<updated>2017-03-17T20:50:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-17T20:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=153e0d762c15d8a85f0070cd01aff45f5c232e3f'/>
<id>urn:sha1:153e0d762c15d8a85f0070cd01aff45f5c232e3f</id>
<content type='text'>
"git add -p &lt;pathspec&gt;" unnecessarily expanded the pathspec to a
list of individual files that matches the pathspec by running "git
ls-files &lt;pathspec&gt;", before feeding it to "git diff-index" to see
which paths have changes, because historically the pathspec
language supported by "diff-index" was weaker.  These days they are
equivalent and there is no reason to internally expand it.  This
helps both performance and avoids command line argument limit on
some platforms.

* jk/add-i-use-pathspecs:
  add--interactive: do not expand pathspecs with ls-files
</content>
</entry>
</feed>
