<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.c, branch v2.23.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.23.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.23.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-07-25T20:59:21Z</updated>
<entry>
<title>Merge branch 'js/unmap-before-ext-diff'</title>
<updated>2019-07-25T20:59:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-25T20:59:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9beb468e6d0c493eed00e365d90a69127488caa'/>
<id>urn:sha1:d9beb468e6d0c493eed00e365d90a69127488caa</id>
<content type='text'>
Windows update.

* js/unmap-before-ext-diff:
  diff: munmap() file contents before running external diff
</content>
</entry>
<entry>
<title>range-diff: suppress line count in outer diff</title>
<updated>2019-07-11T21:29:27Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2019-07-11T16:08:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=430be36eb53b042c447201c778b5398df887022f'/>
<id>urn:sha1:430be36eb53b042c447201c778b5398df887022f</id>
<content type='text'>
The line count in the outer diff's hunk headers of a range diff is not
all that interesting.  It merely shows how far along the inner diff
are on both sides.  That number is of no use for human readers, and
range-diffs are not meant to be machine readable.

In a subsequent commit we're going to add some more contextual
information such as the filename corresponding to the diff to the hunk
headers.  Remove the unnecessary information, and just keep the "@@"
to indicate that a new hunk of the outer diff is starting.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: munmap() file contents before running external diff</title>
<updated>2019-07-11T19:11:54Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-07-11T08:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3aef54e8b82bc02b9cebbb7d0bed8911ee0418e3'/>
<id>urn:sha1:3aef54e8b82bc02b9cebbb7d0bed8911ee0418e3</id>
<content type='text'>
When running an external diff from, say, a diff tool, it is safe to
assume that we want to write the files in question. On Windows, that
means that there cannot be any other process holding an open handle to
said files, or even just a mapped region.

So let's make sure that `git diff` itself is not holding any open handle
to the files in question.

In fact, we will just release the file pair right away, as the external
diff uses the files we just wrote, so we do not need to hold the file
contents in memory anymore.

This fixes https://github.com/git-for-windows/git/issues/1315

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/format-patch-base-patch-id-fix'</title>
<updated>2019-06-13T20:18:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-06-13T20:18:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8202d12fca5d482640a51c663d4d556c46dbc6b8'/>
<id>urn:sha1:8202d12fca5d482640a51c663d4d556c46dbc6b8</id>
<content type='text'>
The "--base" option of "format-patch" computed the patch-ids for
prerequisite patches in an unstable way, which has been updated to
compute in a way that is compatible with "git patch-id --stable".

* sb/format-patch-base-patch-id-fix:
  format-patch: make --base patch-id output stable
  format-patch: inform user that patch-id generation is unstable
</content>
</entry>
<entry>
<title>i18n: fix typos found during l10n for git 2.22.0</title>
<updated>2019-06-03T18:10:53Z</updated>
<author>
<name>Jiang Xin</name>
<email>worldhello.net@gmail.com</email>
</author>
<published>2019-06-02T15:11:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a1569d655f599e803046de193b46a3d1d202b97'/>
<id>urn:sha1:8a1569d655f599e803046de193b46a3d1d202b97</id>
<content type='text'>
Fix two typos introduced by the following commits:

+ 31fba9d3b4 (diff-parseopt: convert --[src|dst]-prefix, 2019-03-24)
+ ed8b4132c8 (remote-curl: mark all error messages for translation,
  2019-03-05)

Signed-off-by: Jiang Xin &lt;worldhello.net@gmail.com&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ja/diff-opt-typofix'</title>
<updated>2019-05-30T17:50:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-05-30T17:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=936dce6f9358afd935cc73c27be7509c07222852'/>
<id>urn:sha1:936dce6f9358afd935cc73c27be7509c07222852</id>
<content type='text'>
Typofix.

* ja/diff-opt-typofix:
  diff: fix mistake in translatable strings
</content>
</entry>
<entry>
<title>Merge branch 'nd/diff-parseopt'</title>
<updated>2019-05-30T17:50:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-05-30T17:50:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=20aa7c594fbc2e36476daae2f53d7c020306c62c'/>
<id>urn:sha1:20aa7c594fbc2e36476daae2f53d7c020306c62c</id>
<content type='text'>
A brown-paper-bag bugfix to a change already in 'master'.

* nd/diff-parseopt:
  parse-options: check empty value in OPT_INTEGER and OPT_ABBREV
  diff-parseopt: restore -U (no argument) behavior
  diff-parseopt: correct variable types that are used by parseopt
</content>
</entry>
<entry>
<title>diff-parseopt: restore -U (no argument) behavior</title>
<updated>2019-05-29T18:04:32Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-05-29T09:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ef05193bcdda6a28cd41fa3ecd8f356061d49e0'/>
<id>urn:sha1:8ef05193bcdda6a28cd41fa3ecd8f356061d49e0</id>
<content type='text'>
Before d473e2e0e8 (diff.c: convert -U|--unified, 2019-01-27), -U and
--unified are implemented with a custom parser opt_arg() in diff.c. I
didn't check this code carefully and not realize that it's the
equivalent of PARSE_OPT_NONEG | PARSE_OPT_OPTARG.

In other words, if -U is specified without any argument, the option
should be accepted, and the default value should be used. Without
PARSE_OPT_OPTARG, parse_options() will reject this case and cause a
regression.

Reported-by: Bryan Turner &lt;bturner@atlassian.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>diff: fix mistake in translatable strings</title>
<updated>2019-05-19T02:01:02Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2019-05-17T19:26:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8bcd8f4cea9d819da690a545d65dd562409d633a'/>
<id>urn:sha1:8bcd8f4cea9d819da690a545d65dd562409d633a</id>
<content type='text'>
Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: make --base patch-id output stable</title>
<updated>2019-05-08T10:27:43Z</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2019-04-26T23:51:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8f6855f48fd474719e92eecc66c29a28fdc0f46'/>
<id>urn:sha1:a8f6855f48fd474719e92eecc66c29a28fdc0f46</id>
<content type='text'>
We weren't flushing the context each time we processed a hunk in the
patch-id generation code in diff.c, but we were doing that when we
generated "stable" patch-ids with the 'patch-id' tool. Let's port that
similar logic over from patch-id.c into diff.c so we can get the same
hash when we're generating patch-ids for 'format-patch --base=' types of
command invocations.

Cc: Xiaolong Ye &lt;xiaolong.ye@intel.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
