<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-diff.c, branch v1.5.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.5.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2007-04-24T07:08:49Z</updated>
<entry>
<title>Diff between two blobs should take mode changes into account now.</title>
<updated>2007-04-24T07:08:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-23T06:56:22Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=43342941dd736fe06fe607a1594422cc8ba461a1'/>
<id>urn:sha1:43342941dd736fe06fe607a1594422cc8ba461a1</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>use mode of the tree in git-diff, if &lt;tree&gt;:&lt;file&gt; syntax is used</title>
<updated>2007-04-24T07:08:49Z</updated>
<author>
<name>Martin Koegler</name>
<email>mkoegler@auto.tuwien.ac.at</email>
</author>
<published>2007-04-22T16:44:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=01618a3ab131548582f4e2371b9b5e7328f61e4a'/>
<id>urn:sha1:01618a3ab131548582f4e2371b9b5e7328f61e4a</id>
<content type='text'>
Signed-off-by: Martin Koegler &lt;mkoegler@auto.tuwien.ac.at&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Support 'diff=pgm' attribute</title>
<updated>2007-04-23T05:16:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-23T00:52:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f1af60bdba465779df92090ed370988f202ff043'/>
<id>urn:sha1:f1af60bdba465779df92090ed370988f202ff043</id>
<content type='text'>
This enhances the attributes mechanism so that external programs
meant for existing GIT_EXTERNAL_DIFF interface can be specifed
per path.

To configure such a custom diff driver, first define a custom
diff driver in the configuration:

	[diff "my-c-diff"]
		command = &lt;&lt;your command string comes here&gt;&gt;

Then mark the paths that you want to use this custom driver
using the attribute mechanism.

	*.c	diff=my-c-diff

The intent of this separation is that the attribute mechanism is
used for specifying the type of the contents, while the
configuration mechanism is used to define what needs to be done
to that type of the contents, which would be specific to both
platform and personal taste.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Allow git-diff exit with codes similar to diff(1)</title>
<updated>2007-03-14T23:21:19Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2007-03-14T00:17:04Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=41bbf9d58575095234c64df979ee884334469758'/>
<id>urn:sha1:41bbf9d58575095234c64df979ee884334469758</id>
<content type='text'>
This introduces a new command-line option: --exit-code. The diff
programs will return 1 for differences, return 0 for equality, and
something else for errors.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff: make more cases implicit --no-index</title>
<updated>2007-03-01T00:32:31Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-25T22:35:27Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01'/>
<id>urn:sha1:fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01</id>
<content type='text'>
When specifying an absolute path, or a relative path pointing outside
the working tree, do not fail, but roll your own diffopt parsing,
and execute a --no-index diff.

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 'master' into js/diff-ni</title>
<updated>2007-02-26T09:20:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-26T09:20:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=048f48a2fdefdf71e7af19ec7111000ce2ebf52e'/>
<id>urn:sha1:048f48a2fdefdf71e7af19ec7111000ce2ebf52e</id>
<content type='text'>
* master: (201 commits)
  Documentation: link in 1.5.0.2 material to the top documentation page.
  Documentation: document remote.&lt;name&gt;.tagopt
  GIT 1.5.0.2
  git-remote: support remotes with a dot in the name
  Documentation: describe "-f/-t/-m" options to "git-remote add"
  diff --cc: fix display of symlink conflicts during a merge.
  merge-recursive: fix longstanding bug in merging symlinks
  merge-index: fix longstanding bug in merging symlinks
  diff --cached: give more sensible error message when HEAD is yet to be created.
  Update tests to use test-chmtime
  Add test-chmtime: a utility to change mtime on files
  Add Release Notes to prepare for 1.5.0.2
  Allow arbitrary number of arguments to git-pack-objects
  rerere: do not deal with symlinks.
  rerere: do not skip two conflicted paths next to each other.
  Don't modify CREDITS-FILE if it hasn't changed.
  diff-patch: Avoid emitting double-slashes in textual patch.
  Reword git-am 3-way fallback failure message.
  Limit filename for format-patch
  core.legacyheaders: Use the description used in RelNotes-1.5.0
  ...
</content>
</entry>
<entry>
<title>diff --cached: give more sensible error message when HEAD is yet to be created.</title>
<updated>2007-02-25T19:09:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-25T06:26:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6c09c451389ade6477d98b05d277aab0dd2f272e'/>
<id>urn:sha1:6c09c451389ade6477d98b05d277aab0dd2f272e</id>
<content type='text'>
It is not like the user said 'diff --cached HEAD', so complaining about
HEAD not being a valid commit, while technically might be correct, is
not very helpful.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Evil Merge branch 'jc/status' (early part) into js/diff-ni</title>
<updated>2007-02-24T10:20:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-24T10:20:13Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=efdfd6c8d418a2c12f31cacb50fa8a91b2b868c8'/>
<id>urn:sha1:efdfd6c8d418a2c12f31cacb50fa8a91b2b868c8</id>
<content type='text'>
* 'jc/status' (early part):
  run_diff_{files,index}(): update calling convention.
  update-index: do not die too early in a read-only repository.
  git-status: do not be totally useless in a read-only repository.

This is to resolve semantic conflict (which is not textual) that
changes the calling convention of run_diff_files() early.
</content>
</entry>
<entry>
<title>git-diff: fix combined diff</title>
<updated>2007-02-23T05:24:34Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-23T04:20:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=75b62b489af7b62a5518c3f199d2a2776205e088'/>
<id>urn:sha1:75b62b489af7b62a5518c3f199d2a2776205e088</id>
<content type='text'>
The code forgets that typecast binds tighter than addition, in
other words:

    (cast *)array + i  === ((cast *)array) + i

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>Teach git-diff-files the new option `--no-index`</title>
<updated>2007-02-23T04:59:55Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-22T20:50:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d516c2d11945cf13ed3d961fa63817c60b7a566b'/>
<id>urn:sha1:d516c2d11945cf13ed3d961fa63817c60b7a566b</id>
<content type='text'>
With this flag and given two paths, git-diff-files behaves as a GNU diff
lookalike (plus the git goodies like --check, colour, etc.).  This flag
is also available in git-diff.  It also works outside of a git repository.

In addition, if git-diff{,-files} is called without revision or stage
parameter, and with exactly two paths at least one of which is not tracked,
the default is --no-index.

So, you can now say

	git diff /etc/inittab /etc/fstab

and it actually works!

This also unifies the duplicated argument parsing between cmd_diff_files()
and builtin_diff_files().

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
