<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.h, 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-23T05:16:14Z</updated>
<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>diff --quiet</title>
<updated>2007-03-14T23:21:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-14T18:12:13Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=68aacb2f3ceef528ded945b510094918bfe3cb37'/>
<id>urn:sha1:68aacb2f3ceef528ded945b510094918bfe3cb37</id>
<content type='text'>
This adds the command line option 'quiet' to tell 'git diff-*'
that we are not interested in the actual diff contents but only
want to know if there is any change.  This option automatically
turns --exit-code on, and turns off output formatting, as it
does not make much sense to show the first hit we happened to
have found.

The --quiet option is silently turned off (but --exit-code is
still in effect, so is silent output) if postprocessing filters
such as pickaxe and diff-filter are used.  For all practical
purposes I do not think of a reason to want to use these filters
and not viewing the diff output.

The backends have not been taught about the option with this patch.
That is a topic for later rounds.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Remove unused diffcore_std_no_resolve</title>
<updated>2007-03-14T23:21:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-14T17:36:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3161b4b52112acb6a3eb57f3bf882e8ca131e7d3'/>
<id>urn:sha1:3161b4b52112acb6a3eb57f3bf882e8ca131e7d3</id>
<content type='text'>
This was only used by diff-tree-helper program, whose purpose
was to translate a raw diff to a patch.

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>diff --no-index: also imitate the exit status of diff(1)</title>
<updated>2007-02-26T09:20:55Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-25T22:34:54Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575'/>
<id>urn:sha1:34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575</id>
<content type='text'>
diff sets the exit status to 0 when no changes were found, to 1
when changes were found, and 2 means error.

We imitate this to be able to use "git diff" in the test scripts.
(Actually, keeping in line with the rest of git, -1 is returned
on error, which corresponds to an exit status 255).

To find out if the diff is not empty, a member called
"found_changes" was introduced in struct diff_options, which is
set in builtin_diff() and fn_out_consume().

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>
<entry>
<title>git-blame: no rev means start from the working tree file.</title>
<updated>2007-02-05T22:55:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-01-30T09:11:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1cfe77333f274c9ba9879c2eb61057a790eb050f'/>
<id>urn:sha1:1cfe77333f274c9ba9879c2eb61057a790eb050f</id>
<content type='text'>
Warning: this changes the semantics.

This makes "git blame" without any positive rev to start digging
from the working tree copy, which is made into a fake commit
whose sole parent is the HEAD.

It also adds --contents &lt;file&gt; option to pretend as if the
working tree copy has the contents of the named file.  You can
use '-' to make the command read from the standard input.

If you want the command to start annotating from the HEAD
commit, you need to explicitly give HEAD parameter.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-index --cached --raw: show tree entry on the LHS for unmerged entries.</title>
<updated>2007-01-07T06:57:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-01-05T09:25:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e9c8409900fc84cd7721117c98dfe01acd535aa2'/>
<id>urn:sha1:e9c8409900fc84cd7721117c98dfe01acd535aa2</id>
<content type='text'>
This updates the way diffcore represents an unmerged pair
somewhat.  It used to be that entries with mode=0 on both sides
were used to represent an unmerged pair, but now it has an
explicit flag.  This is to allow diff-index --cached to report
the entry from the tree when the path is unmerged in the index.

This is used in updating "git reset &lt;tree&gt; -- &lt;path&gt;" to restore
absense of the path in the index from the tree.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>make commit message a little more consistent and conforting</title>
<updated>2006-12-16T06:29:54Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2006-12-15T04:15:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ebd124c6783da5e064963611ee17741cd173f6b5'/>
<id>urn:sha1:ebd124c6783da5e064963611ee17741cd173f6b5</id>
<content type='text'>
It is nicer to let the user know when a commit succeeded all the time,
not only the first time.  Also the commit sha1 is much more useful than
the tree sha1 in this case.

This patch also introduces a -q switch to supress this message as well
as the summary of created/deleted files.

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