<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/xdiff, branch v1.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-07-13T05:31:22Z</updated>
<entry>
<title>Merge branch 'lt/merge-tree'</title>
<updated>2006-07-13T05:31:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-07-13T05:31:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=096b1732343305b7096b1085c23eba8cd83569c7'/>
<id>urn:sha1:096b1732343305b7096b1085c23eba8cd83569c7</id>
<content type='text'>
* lt/merge-tree:
  Improved three-way blob merging code
  Prepare "git-merge-tree" for future work
  xdiff: generate "anti-diffs" aka what is common to two files
</content>
</entry>
<entry>
<title>Fix more typos, primarily in the code</title>
<updated>2006-07-10T07:36:44Z</updated>
<author>
<name>Pavel Roskin</name>
<email>proski@gnu.org</email>
</author>
<published>2006-07-10T05:50:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=82e5a82fd73edb80a841f5fab1660e14b9b8f3ad'/>
<id>urn:sha1:82e5a82fd73edb80a841f5fab1660e14b9b8f3ad</id>
<content type='text'>
The only visible change is that git-blame doesn't understand
"--compability" anymore, but it does accept "--compatibility" instead,
which is already documented.

Signed-off-by: Pavel Roskin &lt;proski@gnu.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>xdiff: generate "anti-diffs" aka what is common to two files</title>
<updated>2006-06-29T05:24:32Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-06-29T04:57:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a9ed376b158faf82d3685b51d546ccaeda716da3'/>
<id>urn:sha1:a9ed376b158faf82d3685b51d546ccaeda716da3</id>
<content type='text'>
This fairly trivial patch adds a new XDL_EMIT_xxx flag to tell libxdiff
that we don't want to generate the _diff_ between two files, we want to
see the lines that are _common_ to two files.

So when you set XDL_EMIT_COMMON, xdl_diff() will do everything exactly
like it used to do, but the output records it generates just contain the
lines that aren't part of the diff.

This is for doing things like generating the common base case for a file
that was added in both branches.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Teach diff about -b and -w flags</title>
<updated>2006-06-24T00:35:27Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2006-06-14T15:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d21efa51cc7de5250d5da46bceacda78ba35373'/>
<id>urn:sha1:0d21efa51cc7de5250d5da46bceacda78ba35373</id>
<content type='text'>
This adds -b (--ignore-space-change) and -w (--ignore-all-space) flags to
diff. The main part of the patch is teaching libxdiff about it.

[jc: renamed xdl_line_match() to xdl_recmatch() since the former is used
 for different purposes in xpatchi.c which is in the parts of the upstream
 source we do not use.]

Signed-off-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>xdiff: minor changes to match libxdiff-0.21</title>
<updated>2006-06-20T01:43:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-20T00:01:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d281786fcd6d0df47dd46e415f1a804b2e81ed9b'/>
<id>urn:sha1:d281786fcd6d0df47dd46e415f1a804b2e81ed9b</id>
<content type='text'>
This reformats the change 621c53cc082299eaf69e9f2dc0274547c7d87fb0
introduced to match what upstream author implemented in libxdiff-0.21
without changing any logic (hopefully ;-).  This is to help keep
us in sync with the upstream.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>xdiff: post-process hunks to make them consistent.</title>
<updated>2006-04-13T23:48:45Z</updated>
<author>
<name>Davide Libenzi</name>
<email>davidel@xmailserver.org</email>
</author>
<published>2006-04-13T23:45:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=295ba2fb894be23cd1d1b0b34186e694b8e36076'/>
<id>urn:sha1:295ba2fb894be23cd1d1b0b34186e694b8e36076</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xdiff/xdiffi.c: fix warnings about possibly uninitialized variables</title>
<updated>2006-04-09T06:35:22Z</updated>
<author>
<name>Marco Roeland</name>
<email>marco.roeland@xs4all.nl</email>
</author>
<published>2006-04-08T15:27:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ed49a3ed9ab9747f7916c928d50aa0bf4d2c81d'/>
<id>urn:sha1:0ed49a3ed9ab9747f7916c928d50aa0bf4d2c81d</id>
<content type='text'>
Compiling this module gave the following warnings (some double dutch!):

xdiff/xdiffi.c: In functie 'xdl_recs_cmp':
xdiff/xdiffi.c:298: let op: 'spl.i1' may be used uninitialized in this function
xdiff/xdiffi.c:298: let op: 'spl.i2' may be used uninitialized in this function
xdiff/xdiffi.c:219: let op: 'fbest1' may be used uninitialized in this function
xdiff/xdiffi.c:219: let op: 'bbest1' may be used uninitialized in this function

A superficial tracking of their usage, without deeper knowledge about the
algorithm, indeed confirms that there are code paths on which these
variables will be used uninitialized. In practice these code paths might never
be reached, but then these fixes will not change the algorithm. If these
code paths are ever reached we now at least have a predictable outcome. And
should the very small performance impact of these initializations be
noticeable, then they should at least be replaced by comments why certain
code paths will never be reached.

Some extra initializations in this patch now fix the warnings.
</content>
</entry>
<entry>
<title>Clean-up trivially redundant diff.</title>
<updated>2006-04-04T07:11:09Z</updated>
<author>
<name>Davide Libenzi</name>
<email>davidel@xmailserver.org</email>
</author>
<published>2006-04-04T01:47:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ca557afff9f7dad7a8739cd193ac0730d872e282'/>
<id>urn:sha1:ca557afff9f7dad7a8739cd193ac0730d872e282</id>
<content type='text'>
Also corrects the line numbers in unified output when using
zero lines context.
</content>
</entry>
<entry>
<title>xdiff: Show function names in hunk headers.</title>
<updated>2006-03-28T02:43:51Z</updated>
<author>
<name>Mark Wooding</name>
<email>mdw@distorted.org.uk</email>
</author>
<published>2006-03-28T02:23:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=acb725772964ee11656543a28c303e9aa6d092c5'/>
<id>urn:sha1:acb725772964ee11656543a28c303e9aa6d092c5</id>
<content type='text'>
The speed of the built-in diff generator is nice; but the function names
shown by `diff -p' are /really/ nice.  And I hate having to choose.  So,
we hack xdiff to find the function names and print them.

xdiff has grown a flag to say whether to dig up the function names.  The
builtin_diff function passes this flag unconditionally.  I suppose it
could parse GIT_DIFF_OPTS, but it doesn't at the moment.  I've also
reintroduced the `function name' into the test suite, from which it was
removed in commit 3ce8f089.

The function names are parsed by a particularly stupid algorithm at the
moment: it just tries to find a line in the `old' file, from before the
start of the hunk, whose first character looks plausible.  Still, it's
most definitely a start.

Signed-off-by: Mark Wooding &lt;mdw@distorted.org.uk&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>built-in diff: minimum tweaks</title>
<updated>2006-03-26T00:50:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-03-25T20:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ce8f08944e614813c7dfb212a88b7c4e3b443bc'/>
<id>urn:sha1:3ce8f08944e614813c7dfb212a88b7c4e3b443bc</id>
<content type='text'>
This fixes up a couple of minor issues with the real built-in
diff to be more usable:

 - Omit ---/+++ header unless we emit diff output;

 - Detect and punt binary diff like GNU does;

 - Honor GIT_DIFF_OPTS minimally (only -u&lt;number&gt; and
   --unified=&lt;number&gt; are currently supported);

 - Omit line count of 1 from "@@ -l,k +m,n @@" hunk header
   (i.e. when k == 1 or n == 1)

 - Adjust testsuite for the lack of -p support.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
