<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.c, branch v2.5.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.5.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.5.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-07-15T19:30:14Z</updated>
<entry>
<title>Merge branch 'jc/diff-ws-error-highlight'</title>
<updated>2015-07-15T19:30:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-07-15T19:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=abecddea25e9c39857b963c8a0cffbbdc135caa9'/>
<id>urn:sha1:abecddea25e9c39857b963c8a0cffbbdc135caa9</id>
<content type='text'>
A hotfix to a new feature in 2.5.0-rc.

* jc/diff-ws-error-highlight:
  diff: parse ws-error-highlight option more strictly
</content>
</entry>
<entry>
<title>diff: parse ws-error-highlight option more strictly</title>
<updated>2015-07-12T16:55:23Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2015-07-11T12:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3f4f17b51b30262041a2248ef9f966f6248aed50'/>
<id>urn:sha1:3f4f17b51b30262041a2248ef9f966f6248aed50</id>
<content type='text'>
Check if a matched token is followed by a delimiter before advancing the
pointer arg.  This avoids accepting composite words like "allnew" or
"defaultcontext" and misparsing them as "new" or "context".

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 'jk/color-diff-plain-is-context'</title>
<updated>2015-06-11T16:29:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-11T16:29:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db65170ee5558b47355e7f9f111aecb5b152d4d9'/>
<id>urn:sha1:db65170ee5558b47355e7f9f111aecb5b152d4d9</id>
<content type='text'>
"color.diff.plain" was a misnomer; give it 'color.diff.context' as
a more logical synonym.

* jk/color-diff-plain-is-context:
  diff.h: rename DIFF_PLAIN color slot to DIFF_CONTEXT
  diff: accept color.diff.context as a synonym for "plain"
</content>
</entry>
<entry>
<title>Merge branch 'jc/diff-ws-error-highlight'</title>
<updated>2015-06-11T16:29:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-11T16:29:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=709cd912d4663af87903d3d278a3bab9d4d84153'/>
<id>urn:sha1:709cd912d4663af87903d3d278a3bab9d4d84153</id>
<content type='text'>
Allow whitespace breakages in deleted and context lines to be also
painted in the output.

* jc/diff-ws-error-highlight:
  diff.c: --ws-error-highlight=&lt;kind&gt; option
  diff.c: add emit_del_line() and emit_context_line()
  t4015: separate common setup and per-test expectation
  t4015: modernise style
</content>
</entry>
<entry>
<title>diff.h: rename DIFF_PLAIN color slot to DIFF_CONTEXT</title>
<updated>2015-05-27T20:54:42Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-27T20:48:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8dbf3eb6850d6d9495ace908625fe50888b111e6'/>
<id>urn:sha1:8dbf3eb6850d6d9495ace908625fe50888b111e6</id>
<content type='text'>
The latter is a much more descriptive name (and we support
"color.diff.context" now). This also updates the name of any
local variables which were used to store the color.

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>diff: accept color.diff.context as a synonym for "plain"</title>
<updated>2015-05-27T20:54:37Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-27T07:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74b15bfbf6f7efffa40fda170b3a3cb0218d8651'/>
<id>urn:sha1:74b15bfbf6f7efffa40fda170b3a3cb0218d8651</id>
<content type='text'>
The term "plain" is a bit ambiguous; let's allow the more
specific "context", but keep "plain" around for
compatibility.

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>diff.c: --ws-error-highlight=&lt;kind&gt; option</title>
<updated>2015-05-27T06:00:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-26T17:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b8767f791c15f119554c1466af60e4f2433ae971'/>
<id>urn:sha1:b8767f791c15f119554c1466af60e4f2433ae971</id>
<content type='text'>
Traditionally, we only cared about whitespace breakages introduced
in new lines.  Some people want to paint whitespace breakages on old
lines, too.  When they see a whitespace breakage on a new line, they
can spot the same kind of whitespace breakage on the corresponding
old line and want to say "Ah, those breakages are there but they
were inherited from the original, so let's not touch them for now."

Introduce `--ws-error-highlight=&lt;kind&gt;` option, that lets them pass
a comma separated list of `old`, `new`, and `context` to specify
what lines to highlight whitespace errors on.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff.c: add emit_del_line() and emit_context_line()</title>
<updated>2015-05-27T05:13:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-26T16:56:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e383e185ae57a8ee6ba015a43749f6d34fe3c9a'/>
<id>urn:sha1:0e383e185ae57a8ee6ba015a43749f6d34fe3c9a</id>
<content type='text'>
Traditionally, we only had emit_add_line() helper, which knows how
to find and paint whitespace breakages on the given line, because we
only care about whitespace breakages introduced in new lines.  The
context lines and old (i.e. deleted) lines are emitted with a
simpler emit_line_0() that paints the entire line in plain or old
colors.

Identify callers of emit_line_0() that show deleted lines and
context lines, have them call new helpers, emit_del_line() and
emit_context_line(), so that we can later tweak what is done to
these two classes of lines.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/deflate-init-cleanup'</title>
<updated>2015-03-17T23:01:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-17T23:01:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6902c4da5855cead535b280a1734771a6fac90e4'/>
<id>urn:sha1:6902c4da5855cead535b280a1734771a6fac90e4</id>
<content type='text'>
Code simplification.

* rs/deflate-init-cleanup:
  zlib: initialize git_zstream in git_deflate_init{,_gzip,_raw}
</content>
</entry>
<entry>
<title>Merge branch 'mk/diff-shortstat-dirstat-fix'</title>
<updated>2015-03-06T23:02:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-06T23:02:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b6488fe191c3bff0dee39cfd2a7082dd52159c47'/>
<id>urn:sha1:b6488fe191c3bff0dee39cfd2a7082dd52159c47</id>
<content type='text'>
"git diff --shortstat --dirstat=changes" showed a dirstat based on
lines that was never asked by the end user in addition to the
dirstat that the user asked for.

* mk/diff-shortstat-dirstat-fix:
  diff --shortstat --dirstat: remove duplicate output
</content>
</entry>
</feed>
