<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/combine-diff.c, branch v1.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.6.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2008-12-17T21:36:35Z</updated>
<entry>
<title>combine-diff.c: use strbuf_readlink()</title>
<updated>2008-12-17T21:36:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-12-17T20:37:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=912342d9d69a30e49491f3fd4d3aa8dc2f6050f3'/>
<id>urn:sha1:912342d9d69a30e49491f3fd4d3aa8dc2f6050f3</id>
<content type='text'>
When showing combined diff using work tree contents, use strbuf_readlink()
to read symbolic links.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Always initialize xpparam_t to 0</title>
<updated>2008-10-25T19:09:31Z</updated>
<author>
<name>Brian Downing</name>
<email>bdowning@lavos.net</email>
</author>
<published>2008-10-25T13:30:37Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9ccd0a88ac3ea13ac2df4630bfd01c02084f965e'/>
<id>urn:sha1:9ccd0a88ac3ea13ac2df4630bfd01c02084f965e</id>
<content type='text'>
We're going to be adding some parameters to this, so we can't have
any uninitialized data in it.

Signed-off-by: Brian Downing &lt;bdowning@lavos.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Replace calls to strbuf_init(&amp;foo, 0) with STRBUF_INIT initializer</title>
<updated>2008-10-12T19:36:19Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-09T19:12:12Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f285a2d7ed6548666989406de8f0e7233eb84368'/>
<id>urn:sha1:f285a2d7ed6548666989406de8f0e7233eb84368</id>
<content type='text'>
Many call sites use strbuf_init(&amp;foo, 0) to initialize local
strbuf variable "foo" which has not been accessed since its
declaration. These can be replaced with a static initialization
using the STRBUF_INIT macro which is just as readable, saves a
function call, and takes up fewer lines.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/diff-prefix'</title>
<updated>2008-09-19T03:30:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-19T03:30:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e69a6f47c4e25a20170eb989a55257d0399f795b'/>
<id>urn:sha1:e69a6f47c4e25a20170eb989a55257d0399f795b</id>
<content type='text'>
* jc/diff-prefix:
  diff: vary default prefix depending on what are compared
</content>
</entry>
<entry>
<title>Merge branch 'jc/hide-cr-in-diff-from-less'</title>
<updated>2008-09-08T06:45:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-08T06:45:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fdfb4cfadcfdfe4ebafd0545b5ebb661433ea66c'/>
<id>urn:sha1:fdfb4cfadcfdfe4ebafd0545b5ebb661433ea66c</id>
<content type='text'>
* jc/hide-cr-in-diff-from-less:
  diff: Help "less" hide ^M from the output
</content>
</entry>
<entry>
<title>diff: vary default prefix depending on what are compared</title>
<updated>2008-08-31T03:53:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-19T03:08:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a5a818ee4877e4458e8e6741a03ac3b19941d58a'/>
<id>urn:sha1:a5a818ee4877e4458e8e6741a03ac3b19941d58a</id>
<content type='text'>
With a new configuration "diff.mnemonicprefix", "git diff" shows the
differences between various combinations of preimage and postimage trees
with prefixes different from the standard "a/" and "b/".  Hopefully this
will make the distinction stand out for some people.

    "git diff" compares the (i)ndex and the (w)ork tree;
    "git diff HEAD" compares a (c)ommit and the (w)ork tree;
    "git diff --cached" compares a (c)ommit and the (i)ndex;
    "git-diff HEAD:file1 file2" compares an (o)bject and a (w)ork tree entity;
    "git diff --no-index a b" compares two non-git things (1) and (2).

Because these mnemonics now have meanings, they are swapped when reverse
diff is in effect and this feature is enabled.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: Help "less" hide ^M from the output</title>
<updated>2008-08-31T03:34:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-28T02:48:01Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=392809702016cde59d50a7b07e8c27f6d0ec3c3f'/>
<id>urn:sha1:392809702016cde59d50a7b07e8c27f6d0ec3c3f</id>
<content type='text'>
When the tracked contents have CRLF line endings, colored diff output
shows "^M" at the end of output lines, which is distracting, even though
the pager we use by default ("less") knows to hide them.

The problem is that "less" hides a carriage-return only at the end of the
line, immediately before a line feed.  The colored diff output does not
take this into account, and emits four element sequence for each line:

   - force this color;
   - the line up to but not including the terminating line feed;
   - reset color
   - line feed.

By including the carriage return at the end of the line in the second
item, we are breaking the smart our pager has in order not to show "^M".
This can be fixed by changing the sequence to:

   - force this color;
   - the line up to but not including the terminating end-of-line;
   - reset color
   - end-of-line.

where end-of-line is either a single linefeed or a CRLF pair.  When the
output is not colored, "force this color" and "reset color" sequences are
both empty, so we won't have this problem with or without this patch.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint' to sync with 1.6.0.1</title>
<updated>2008-08-24T21:50:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-24T21:48:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=49d3536594e653717844d53825fa7c0a494888f7'/>
<id>urn:sha1:49d3536594e653717844d53825fa7c0a494888f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Respect core.autocrlf in combined diff</title>
<updated>2008-08-24T06:59:20Z</updated>
<author>
<name>Alexander Gavrilov</name>
<email>angavrilov@gmail.com</email>
</author>
<published>2008-08-23T19:21:21Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5e568f9e3027797842807213ce590140c9daf9ce'/>
<id>urn:sha1:5e568f9e3027797842807213ce590140c9daf9ce</id>
<content type='text'>
Fix git-diff to make it produce useful 3-way diffs for merge conflicts in
repositories with autocrlf enabled. Otherwise it always reports that the
whole file was changed, because it uses the contents from the working tree
without necessary conversion.

Signed-off-by: Alexander Gavrilov &lt;angavrilov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>xdiff-interface: hide the whole "xdiff_emit_state" business from the caller</title>
<updated>2008-08-14T07:30:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-14T06:18:22Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8a3f524bf2ac534b313a7d8e70cc164cef744949'/>
<id>urn:sha1:8a3f524bf2ac534b313a7d8e70cc164cef744949</id>
<content type='text'>
This further enhances xdi_diff_outf() interface so that it takes two
common parameters: the callback function that processes one line at a
time, and a pointer to its application specific callback data structure.
xdi_diff_outf() creates its own "xdiff_emit_state" structure and stashes
these two away inside it, which is used by the lowest level output
function in the xdiff_outf() callchain, consume_one(), to call back to the
application layer.  With this restructuring, we lift the requirement that
the caller supplied callback data structure embeds xdiff_emit_state
structure as its first member.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
