<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.c, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-04-24T23:19:42Z</updated>
<entry>
<title>Merge branch 'jk/diff-algo-finishing-touches' into maint</title>
<updated>2013-04-24T23:19:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-24T23:17:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e4d15959d45468bfb13c80195e3a6b40f5b0a489'/>
<id>urn:sha1:e4d15959d45468bfb13c80195e3a6b40f5b0a489</id>
<content type='text'>
"git diff --diff-algorithm=algo" was understood by the command line
parser, but "git diff --diff-algorithm algo" was not.

* jk/diff-algo-finishing-touches:
  diff: allow unstuck arguments with --diff-algorithm
  git-merge(1): document diff-algorithm option to merge-recursive
</content>
</entry>
<entry>
<title>Correct common spelling mistakes in comments and tests</title>
<updated>2013-04-12T20:38:40Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2013-04-11T22:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41ccfdd9c931ee71b09f38f4eb19cf44a8e4381d'/>
<id>urn:sha1:41ccfdd9c931ee71b09f38f4eb19cf44a8e4381d</id>
<content type='text'>
Most of these were found using Lucas De Marchi's codespell tool.

Signed-off-by: Stefano Lattarini &lt;stefano.lattarini@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Acked-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: allow unstuck arguments with --diff-algorithm</title>
<updated>2013-04-05T18:01:08Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-05T12:19:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0895c6d4c09045a3faeb7b652a844fc81c774631'/>
<id>urn:sha1:0895c6d4c09045a3faeb7b652a844fc81c774631</id>
<content type='text'>
The argument to --diff-algorithm is mandatory, so there is no reason to
require the argument to be stuck to the option with '='.  Change this
for consistency with other Git commands.

Note that this does not change the handling of diff-algorithm in
merge-recursive.c since the primary interface to that is via the -X
option to 'git merge' where the unstuck form does not make sense.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ap/maint-diff-rename-avoid-overlap' into maint</title>
<updated>2013-04-01T16:19:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-01T16:19:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b76a9e164854a7a87a2f21859f05b132ee5b83d9'/>
<id>urn:sha1:b76a9e164854a7a87a2f21859f05b132ee5b83d9</id>
<content type='text'>
* ap/maint-diff-rename-avoid-overlap:
  tests: make sure rename pretty print works
  diff: prevent pprint_rename from underrunning input
  diff: Fix rename pretty-print when suffix and prefix overlap
</content>
</entry>
<entry>
<title>diff.c: diff.renamelimit =&gt; diff.renameLimit in message</title>
<updated>2013-03-21T21:06:49Z</updated>
<author>
<name>Max Nanasy</name>
<email>max.nanasy@gmail.com</email>
</author>
<published>2013-03-21T19:53:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c9fc4415e2c7d7673cdad34d41114ede3435a395'/>
<id>urn:sha1:c9fc4415e2c7d7673cdad34d41114ede3435a395</id>
<content type='text'>
In the warning message printed when rename or unmodified copy
detection was skipped due to too many files, change "diff.renamelimit"
to "diff.renameLimit", in order to make it consistent with git
documentation, which consistently uses "diff.renameLimit".

Signed-off-by: Max Nanasy &lt;max.nanasy@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: prevent pprint_rename from underrunning input</title>
<updated>2013-02-26T21:01:34Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2013-02-26T20:47:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd281f09b7eab86e4983b37d011cbfb0f593f6b8'/>
<id>urn:sha1:dd281f09b7eab86e4983b37d011cbfb0f593f6b8</id>
<content type='text'>
The logic described in d020e27 (diff: Fix rename pretty-print when
suffix and prefix overlap, 2013-02-23) is wrong: The proof in the
comment is valid only if both strings are the same length.  *One* of
old/new can reach a-1 (b-1, resp.) if 'a' is a suffix of 'b' (or vice
versa).

Since the intent was to let the loop run down to the '/' at the end of
the common prefix, fix it by making that distinction explicit: if
there is no prefix, allow no underrun.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: Fix rename pretty-print when suffix and prefix overlap</title>
<updated>2013-02-24T07:52:39Z</updated>
<author>
<name>Antoine Pelisse</name>
<email>apelisse@gmail.com</email>
</author>
<published>2013-02-23T16:48:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d020e27fdaeb7d04247cdf5a0ff84d97626d5f5a'/>
<id>urn:sha1:d020e27fdaeb7d04247cdf5a0ff84d97626d5f5a</id>
<content type='text'>
When considering a rename for two files that have a suffix and a prefix
that can overlap, a confusing line is shown. As an example, renaming
"a/b/b/c" to "a/b/c" shows "a/b/{ =&gt; }/b/c".

Currently, what we do is calculate the common prefix ("a/b/"), and the
common suffix ("/b/c"), but the same "/b/" is actually counted both in
prefix and suffix. Then when calculating the size of the non-common part,
we end-up with a negative value which is reset to 0, thus the "{ =&gt; }".

Do not allow the common suffix to overlap the common prefix and stop
when reaching a "/" that would be in both.

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 'mp/diff-algo-config'</title>
<updated>2013-02-17T23:25:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-17T23:25:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=abea4dc76a675d4ac0f27a2367256dc31981d1ca'/>
<id>urn:sha1:abea4dc76a675d4ac0f27a2367256dc31981d1ca</id>
<content type='text'>
Add diff.algorithm configuration so that the user does not type
"diff --histogram".

* mp/diff-algo-config:
  diff: Introduce --diff-algorithm command line option
  config: Introduce diff.algorithm variable
  git-completion.bash: Autocomplete --minimal and --histogram for git-diff
</content>
</entry>
<entry>
<title>Merge branch 'jk/diff-graph-cleanup'</title>
<updated>2013-02-14T18:29:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-14T18:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a1d68bea891118bdaecb6dd77610e6daf2f7d53d'/>
<id>urn:sha1:a1d68bea891118bdaecb6dd77610e6daf2f7d53d</id>
<content type='text'>
Refactors a lot of repetitive code sequence from the graph drawing
code and adds it to the combined diff output.

* jk/diff-graph-cleanup:
  combine-diff.c: teach combined diffs about line prefix
  diff.c: use diff_line_prefix() where applicable
  diff: add diff_line_prefix function
  diff.c: make constant string arguments const
  diff: write prefix to the correct file
  graph: output padding for merge subsequent parents
</content>
</entry>
<entry>
<title>diff.c: use diff_line_prefix() where applicable</title>
<updated>2013-02-12T19:42:07Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-02-07T20:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=30997bb8f11bd6e63a582c3b4e029ca47868ad8d'/>
<id>urn:sha1:30997bb8f11bd6e63a582c3b4e029ca47868ad8d</id>
<content type='text'>
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
