<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.txt, 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-09T22:32:57Z</updated>
<entry>
<title>Merge branch 'jk/doc-diff-options'</title>
<updated>2018-01-09T22:32:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-09T22:32:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6366dd9000a3f67e47a30d94375a88dabc18ec6f'/>
<id>urn:sha1:6366dd9000a3f67e47a30d94375a88dabc18ec6f</id>
<content type='text'>
Doc update.

* jk/doc-diff-options:
  docs/diff-options: clarify scope of diff-filter types
</content>
</entry>
<entry>
<title>docs/diff-options: clarify scope of diff-filter types</title>
<updated>2018-01-04T19:09:47Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2018-01-04T16:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46af107bdef7bd9892bf504aa874d24f826dd4ba'/>
<id>urn:sha1:46af107bdef7bd9892bf504aa874d24f826dd4ba</id>
<content type='text'>
The same document for "--diff-filter" is included by many
programs in the diff family. Because it mentions all
possible types (added, removed, etc), this may imply to the
reader that all types can be generated by a particular
command. But this isn't necessarily the case; "diff-files"
cannot generally produce an "Added" entry, since the diff is
limited to what is already in the index.

Let's make it clear that the list here is the full one, and
does not imply anything about what a particular invocation
may produce.

Note that conditionally including items (e.g., omitting
"Added" in the git-diff-files manpage) isn't the right
solution here for two reasons:

  - The problem isn't diff-files, but doing an index to
    working tree diff. "git diff" can do the same diff, but
    also has other modes where "Added" does show up.

  - The direction of the diff matters. Doing "diff-files -R"
    can get you Added entries (but not Deleted ones).

So it's best just to explain that the set of available types
depends on the specific diff invocation.

Reported-by: John Cheng &lt;johnlicheng@gmail.com&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>diff: support anchoring line(s)</title>
<updated>2017-11-28T01:40:04Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2017-11-27T19:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2477ab2ea8651920a9909f6d05b15ad9004a6c64'/>
<id>urn:sha1:2477ab2ea8651920a9909f6d05b15ad9004a6c64</id>
<content type='text'>
Teach diff a new algorithm, one that attempts to prevent user-specified
lines from appearing as a deletion or addition in the end result. The
end user can use this by specifying "--anchored=&lt;text&gt;" one or more
times when using Git commands like "diff" and "show".

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/ignore-cr-at-eol'</title>
<updated>2017-11-27T02:06:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10f65c239a885336b745cc9d2e1654980ffef41e'/>
<id>urn:sha1:10f65c239a885336b745cc9d2e1654980ffef41e</id>
<content type='text'>
The "diff" family of commands learned to ignore differences in
carriage return at the end of line.

* jc/ignore-cr-at-eol:
  diff: --ignore-cr-at-eol
  xdiff: reassign xpparm_t.flags bits
</content>
</entry>
<entry>
<title>diff: --ignore-cr-at-eol</title>
<updated>2017-11-08T01:05:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-10-26T06:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9282f02b2f21118f3383608718e38efc3d967e1'/>
<id>urn:sha1:e9282f02b2f21118f3383608718e38efc3d967e1</id>
<content type='text'>
A new option --ignore-cr-at-eol tells the diff machinery to treat a
carriage-return at the end of a (complete) line as if it does not
exist.

Just like other "--ignore-*" options to ignore various kinds of
whitespace differences, this will help reviewing the real changes
you made without getting distracted by spurious CRLF&lt;-&gt;LF conversion
made by your editor program.

Helped-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
[jch: squashed in command line completion by Dscho]
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cn/diff-indent-no-longer-is-experimental'</title>
<updated>2017-11-06T04:11:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-06T04:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=662ac3b3a8a16fd749b598c85c4d8bfea5bb208e'/>
<id>urn:sha1:662ac3b3a8a16fd749b598c85c4d8bfea5bb208e</id>
<content type='text'>
Doc update.

* cn/diff-indent-no-longer-is-experimental:
  diff: --indent-heuristic is no longer experimental
</content>
</entry>
<entry>
<title>diff: --indent-heuristic is no longer experimental</title>
<updated>2017-11-02T05:51:24Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2017-10-29T15:12:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bab76141da04ab094ece449e2127ef43a8fa60c8'/>
<id>urn:sha1:bab76141da04ab094ece449e2127ef43a8fa60c8</id>
<content type='text'>
This heuristic has been the default since 2.14 so we should not confuse our
users by saying that it's experimental and off by default.

Signed-off-by: Carlos Martín Nieto &lt;cmn@dwim.me&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/diff-color-move-fix'</title>
<updated>2017-08-27T05:55:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-27T05:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0b9635847944f97079fc6c2283063cd3a0ed0271'/>
<id>urn:sha1:0b9635847944f97079fc6c2283063cd3a0ed0271</id>
<content type='text'>
A handful of bugfixes and an improvement to "diff --color-moved".

* jt/diff-color-move-fix:
  diff: define block by number of alphanumeric chars
  diff: respect MIN_BLOCK_LENGTH for last block
  diff: avoid redundantly clearing a flag
</content>
</entry>
<entry>
<title>Merge branch 'sb/diff-color-move'</title>
<updated>2017-08-27T05:55:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-27T05:55:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b6c4058f978433c51581df87283309b611bde87b'/>
<id>urn:sha1:b6c4058f978433c51581df87283309b611bde87b</id>
<content type='text'>
"git diff" has been taught to optionally paint new lines that are
the same as deleted lines elsewhere differently from genuinely new
lines.

* sb/diff-color-move: (25 commits)
  diff: document the new --color-moved setting
  diff.c: add dimming to moved line detection
  diff.c: color moved lines differently, plain mode
  diff.c: color moved lines differently
  diff.c: buffer all output if asked to
  diff.c: emit_diff_symbol learns about DIFF_SYMBOL_SUMMARY
  diff.c: emit_diff_symbol learns about DIFF_SYMBOL_STAT_SEP
  diff.c: convert word diffing to use emit_diff_symbol
  diff.c: convert show_stats to use emit_diff_symbol
  diff.c: convert emit_binary_diff_body to use emit_diff_symbol
  submodule.c: migrate diff output to use emit_diff_symbol
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_REWRITE_DIFF
  diff.c: emit_diff_symbol learns about DIFF_SYMBOL_BINARY_FILES
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_HEADER
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_FILEPAIR_{PLUS, MINUS}
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_INCOMPLETE
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_WORDS[_PORCELAIN]
  diff.c: migrate emit_line_checked to use emit_diff_symbol
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_NO_LF_EOF
  diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_FRAGINFO
  ...
</content>
</entry>
<entry>
<title>Merge branch 'ah/doc-wserrorhighlight' into maint</title>
<updated>2017-08-23T21:33:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-23T21:33:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b55b936038ba66233fb765b7b46ed6852dc8fdfb'/>
<id>urn:sha1:b55b936038ba66233fb765b7b46ed6852dc8fdfb</id>
<content type='text'>
Doc update.

* ah/doc-wserrorhighlight:
  doc: add missing values "none" and "default" for diff.wsErrorHighlight
</content>
</entry>
</feed>
