<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.txt, branch v2.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-03-14T05:13:46Z</updated>
<entry>
<title>*config.txt: stick to camelCase naming convention</title>
<updated>2015-03-14T05:13:46Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2015-03-11T20:32:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da0005b8853137c91e44867d899910d5c7eb4425'/>
<id>urn:sha1:da0005b8853137c91e44867d899910d5c7eb4425</id>
<content type='text'>
This should improve readability. Compare "thislongname" and
"thisLongName". The following keys are left in unchanged. We can
decide what to do with them later.

 - am.keepcr
 - core.autocrlf .safecrlf .trustctime
 - diff.dirstat .noprefix
 - gitcvs.usecrlfattr
 - gui.blamehistoryctx .trustmtime
 - pull.twohead
 - receive.autogc
 - sendemail.signedoffbycc .smtpsslcertpath .suppresscc

Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: fix misuses of "nor"</title>
<updated>2014-03-31T22:16:22Z</updated>
<author>
<name>Justin Lebar</name>
<email>jlebar@google.com</email>
</author>
<published>2014-03-31T22:11:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a58088abe2011b6f486de8acd54432f6d9bcecfc'/>
<id>urn:sha1:a58088abe2011b6f486de8acd54432f6d9bcecfc</id>
<content type='text'>
Signed-off-by: Justin Lebar &lt;jlebar@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: add diff.orderfile configuration variable</title>
<updated>2013-12-19T00:39:00Z</updated>
<author>
<name>Samuel Bronson</name>
<email>naesten@gmail.com</email>
</author>
<published>2013-12-19T00:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d8940b562adc5e43068868109dffe1b9bff7f78'/>
<id>urn:sha1:6d8940b562adc5e43068868109dffe1b9bff7f78</id>
<content type='text'>
diff.orderfile acts as a default for the -O command line option.

[sb: split up aw's original patch; rework tests and docs, treat option
as pathname]

Signed-off-by: Anders Waldenborg &lt;anders@0x63.nu&gt;
Signed-off-by: Samuel Bronson &lt;naesten@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mm/diff-no-patch-synonym-to-s'</title>
<updated>2013-07-22T18:23:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-07-22T18:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2ecd252b5e3c90c211075ba9d1017379782708b'/>
<id>urn:sha1:e2ecd252b5e3c90c211075ba9d1017379782708b</id>
<content type='text'>
"git show -s" was less discoverable than it should be.

* mm/diff-no-patch-synonym-to-s:
  Documentation/git-log.txt: capitalize section names
  Documentation: move description of -s, --no-patch to diff-options.txt
  Documentation/git-show.txt: include common diff options, like git-log.txt
  diff: allow --patch &amp; cie to override -s/--no-patch
  diff: allow --no-patch as synonym for -s
  t4000-diff-format.sh: modernize style
</content>
</entry>
<entry>
<title>Documentation: move description of -s, --no-patch to diff-options.txt</title>
<updated>2013-07-18T00:50:56Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-07-16T08:05:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b02c834638f6bea4cf14e4981702103b478ff4d'/>
<id>urn:sha1:7b02c834638f6bea4cf14e4981702103b478ff4d</id>
<content type='text'>
Technically, "-s, --no-patch" is implemented in diff.c ("git diff
--no-patch" is essentially useless, but valid). From the user point of
view, this allows the documentation to show up in "git show --help",
which is one of the most useful use of the option.

While we're there, add a sentence explaining why the option can be
useful.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ft/diff-rename-default-score-is-half'</title>
<updated>2013-07-12T19:04:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-07-12T19:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6492deafdd895cbf19034211dceeddce0337669c'/>
<id>urn:sha1:6492deafdd895cbf19034211dceeddce0337669c</id>
<content type='text'>
* ft/diff-rename-default-score-is-half:
  diff-options: document default similarity index
</content>
</entry>
<entry>
<title>diff-options: document default similarity index</title>
<updated>2013-07-06T06:14:37Z</updated>
<author>
<name>Fraser Tweedale</name>
<email>frase@frase.id.au</email>
</author>
<published>2013-07-05T08:42:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8240943bd75f1f19a40a0d4634afcab2eadd23d9'/>
<id>urn:sha1:8240943bd75f1f19a40a0d4634afcab2eadd23d9</id>
<content type='text'>
The default similarity index of 50% is documented in gitdiffcore(7)
but it is worth also mentioning it in the description of the
-M/--find-renames option.

Signed-off-by: Fraser Tweedale &lt;frase@frase.id.au&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ap/diff-ignore-blank-lines'</title>
<updated>2013-06-30T22:39:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-06-30T22:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=08585fd48d2d3d8facce9bdc366cfd896329a4b8'/>
<id>urn:sha1:08585fd48d2d3d8facce9bdc366cfd896329a4b8</id>
<content type='text'>
"git diff" learned a mode that ignores hunks whose change consists
only of additions and removals of blank lines, which is the same as
"diff -B" (ignore blank lines) of GNU diff.

* ap/diff-ignore-blank-lines:
  diff: add --ignore-blank-lines option
</content>
</entry>
<entry>
<title>diff: add --ignore-blank-lines option</title>
<updated>2013-06-19T22:17:45Z</updated>
<author>
<name>Antoine Pelisse</name>
<email>apelisse@gmail.com</email>
</author>
<published>2013-06-19T18:46:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=36617af7ed594d1928554356d809bd611c642dd2'/>
<id>urn:sha1:36617af7ed594d1928554356d809bd611c642dd2</id>
<content type='text'>
The goal of the patch is to introduce the GNU diff
-B/--ignore-blank-lines as closely as possible. The short option is not
available because it's already used for "break-rewrites".

When this option is used, git-diff will not create hunks that simply
add or remove empty lines, but will still show empty lines
addition/suppression if they are close enough to "valuable" changes.

There are two differences between this option and GNU diff -B option:
- GNU diff doesn't have "--inter-hunk-context", so this must be handled
- The following sequence looks like a bug (context is displayed twice):

    $ seq 5 &gt;file1
    $ cat &lt;&lt;EOF &gt;file2
    change
    1
    2

    3
    4
    5
    change
    EOF
    $ diff -u -B file1 file2
    --- file1	2013-06-08 22:13:04.471517834 +0200
    +++ file2	2013-06-08 22:13:23.275517855 +0200
    @@ -1,5 +1,7 @@
    +change
     1
     2
    +
     3
     4
     5
    @@ -3,3 +5,4 @@
     3
     4
     5
    +change

So here is a more thorough description of the option:
- real changes are interesting
- blank lines that are close enough (less than context size) to
interesting changes are considered interesting (recursive definition)
- "context" lines are used around each hunk of interesting changes
- If two hunks are separated by less than "inter-hunk-context", they
will be merged into one.

The implementation does the "interesting changes selection" in a single
pass.

Signed-off-by: Antoine Pelisse &lt;apelisse@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rr/diffcore-pickaxe-doc'</title>
<updated>2013-06-11T20:31:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-06-11T20:31:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=71e120202fe073bd2e4e9db59ca01ab7c5e72f7e'/>
<id>urn:sha1:71e120202fe073bd2e4e9db59ca01ab7c5e72f7e</id>
<content type='text'>
Update the low-level diffcore documentation on -S/-G and --pickaxe-all.

* rr/diffcore-pickaxe-doc:
  diffcore-pickaxe doc: document -S and -G properly
  diffcore-pickaxe: make error messages more consistent
</content>
</entry>
</feed>
