<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/diff.c, branch v1.4.1.1</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.4.1.1</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.4.1.1'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2006-06-29T05:49:42Z</updated>
<entry>
<title>diff.c: fix get_patch_id()</title>
<updated>2006-06-29T05:49:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-29T05:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=9fdc3bb5c20e37e410e03ed5b6c71a7e647ccee8'/>
<id>urn:sha1:9fdc3bb5c20e37e410e03ed5b6c71a7e647ccee8</id>
<content type='text'>
The function internally generated diff to get the patch id but
passed a wrong emit flags to the xdiff layer when it did so.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>add diff_flush_patch_id() to calculate the patch id</title>
<updated>2006-06-26T21:44:03Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2006-06-25T01:51:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fcb3d0adc13b398c930814a5e0c886717acc1b70'/>
<id>urn:sha1:fcb3d0adc13b398c930814a5e0c886717acc1b70</id>
<content type='text'>
Call it like this:

unsigned char id[20];
if (diff_flush_patch_id(diff_options, id))
	printf("And the patch id is: %s\n", sha1_to_hex(id));

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>Merge branch 'jc/diff'</title>
<updated>2006-06-26T21:36:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-26T21:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6a0dbb8a5c41770c2280de15c3202970c6515ccc'/>
<id>urn:sha1:6a0dbb8a5c41770c2280de15c3202970c6515ccc</id>
<content type='text'>
* jc/diff:
  diff --color: use $GIT_DIR/config
</content>
</entry>
<entry>
<title>Merge branch 'js/diff'</title>
<updated>2006-06-26T21:28:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-26T21:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2cc06a0500b4b69e8563f76c42306e36b1f0aabf'/>
<id>urn:sha1:2cc06a0500b4b69e8563f76c42306e36b1f0aabf</id>
<content type='text'>
* js/diff:
  Teach diff about -b and -w flags
</content>
</entry>
<entry>
<title>diff --color: use $GIT_DIR/config</title>
<updated>2006-06-25T07:39:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-24T11:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=801235c5e6bff0ec1c4e41c9d46535ead3b693c1'/>
<id>urn:sha1:801235c5e6bff0ec1c4e41c9d46535ead3b693c1</id>
<content type='text'>
This lets you use something like this in your $GIT_DIR/config
file.

	[diff]
		color = auto

	[diff.color]
		new = blue
		old = yellow
		frag = reverse

When diff.color is set to "auto", colored diff is enabled when
the standard output is the terminal.  Other choices are "always",
and "never".  Usual boolean true/false can also be used.

The colormap entries can specify colors for the following slots:

	plain	- lines that appear in both old and new file (context)
	meta	- diff --git header and extended git diff headers
	frag	- @@ -n,m +l,k @@ lines (hunk header)
	old	- lines deleted from old file
	new	- lines added to new file

The following color names can be used:

	normal, bold, dim, l, blink, reverse, reset,
	black, red, green, yellow, blue, magenta, cyan,
	white

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Clean up diff.c</title>
<updated>2006-06-25T03:16:55Z</updated>
<author>
<name>Timo Hirvonen</name>
<email>tihirvon@gmail.com</email>
</author>
<published>2006-06-24T17:20:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=d2543b8ee3abeb611c352f17a9177732bfde7e36'/>
<id>urn:sha1:d2543b8ee3abeb611c352f17a9177732bfde7e36</id>
<content type='text'>
Signed-off-by: Timo Hirvonen &lt;tihirvon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff --color: use reset sequence when we mean reset.</title>
<updated>2006-06-24T11:24:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-24T11:20:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=0ec2f6b7392f8f041fd48f824bbf22c4dd13ac40'/>
<id>urn:sha1:0ec2f6b7392f8f041fd48f824bbf22c4dd13ac40</id>
<content type='text'>
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.stealer.net/cgit.cgi/user/sven/git.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>Tweak diff colors</title>
<updated>2006-06-22T22:08:36Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-06-22T20:53:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=50f575fc9836704d45a5f732125b8f58103425a4'/>
<id>urn:sha1:50f575fc9836704d45a5f732125b8f58103425a4</id>
<content type='text'>
This patch does:

 - always reset the color _before_ printing out the newline.

   This is actually important. You (and Johannes) didn't see it, because
   it only matters if you set the background, but if you don't do this,
   you get some random and funky behaviour if you pick a color with a
   non-default background (which still potentially has problems with tabs
   etc, but less so).

 - allow people to have a different color for the "file headers"
   (DIFF_METAINFO) and for the "fragment header" (DIFF_FRAGINFO). Also,
   make a difference between "normal color" and "reset colors"

 - default to red/green for old/new lines. That's the norm, I'd think.

 - instead of that eye-popping (and eye-ball-with-a-fondue-fork-popping)
   purple color for metadata, use bold-face for file headers, and cyan for
   the frag headers. I actually prefer the "gray background" for that, but
   it only works well in xterms, so COLOR_CYAN it is..

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>Merge branch 'ff/c99' into next</title>
<updated>2006-06-21T10:51:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-21T10:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=9d24ed4f019e035eeb8125c2c595876ad1211a3a'/>
<id>urn:sha1:9d24ed4f019e035eeb8125c2c595876ad1211a3a</id>
<content type='text'>
* ff/c99:
  Remove all void-pointer arithmetic.
</content>
</entry>
</feed>
