<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff-files.c, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-02-14T09:11:42Z</updated>
<entry>
<title>combine-diff: diff-files fix (#2)</title>
<updated>2006-02-14T09:11:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-14T09:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ece7169a434d69a942b71dc49f507da37bbdbc3'/>
<id>urn:sha1:9ece7169a434d69a942b71dc49f507da37bbdbc3</id>
<content type='text'>
The raw format "git-diff-files -c" to show unmerged state forgot
to initialize the status fields from parents, causing NUL
characters to be emitted.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>combine-diff: move formatting logic to show_combined_diff()</title>
<updated>2006-02-09T23:23:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-09T23:23:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0a798076b8d1a4a31bf2b24c564e2a99fd1c43a1'/>
<id>urn:sha1:0a798076b8d1a4a31bf2b24c564e2a99fd1c43a1</id>
<content type='text'>
This way, diff-files can make use of it.  Also implement the
full suite of what diff_flush_raw() supports just for
consistency.  With this, 'diff-tree -c -r --name-status' would
show what is expected.

There is no way to get the historical output (useful for
debugging and low-level Plumbing work) anymore, so tentatively
it makes '-m' to mean "do not combine and show individual diffs
with parents".

diff-files matches diff-tree to produce raw output for -c.  For
textual combined diff, use -p -c.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>combine-diff: show mode changes as well.</title>
<updated>2006-02-06T21:06:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-06T20:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2454c962fbe82f23aac4a5d78a0c3b5ffaed83a0'/>
<id>urn:sha1:2454c962fbe82f23aac4a5d78a0c3b5ffaed83a0</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>combine-diff: remove misguided --show-empty hack.</title>
<updated>2006-02-06T06:25:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-06T06:25:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e3c3a550d4815d34b5674776c36cdd6d8a31ab85'/>
<id>urn:sha1:e3c3a550d4815d34b5674776c36cdd6d8a31ab85</id>
<content type='text'>
Now --always flag is available in diff-tree, there is no reason
to have that hack in the diffcore side.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-files -c/--cc: combine only when both ours and theirs exist.</title>
<updated>2006-01-28T10:26:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-28T10:09:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=939aabbf7d108b5d6830bf5cd89abc910cc9ff27'/>
<id>urn:sha1:939aabbf7d108b5d6830bf5cd89abc910cc9ff27</id>
<content type='text'>
The previous round forgot to make sure there actually are two
versions to compare against the working tree version.  Otherwise
using -c/--cc would not make much sense.

Also plug a small memory leak.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-files: -c and --cc options.</title>
<updated>2006-01-28T08:08:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-28T08:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea726d02e9677a66586d7ffebe97f112ab6dab33'/>
<id>urn:sha1:ea726d02e9677a66586d7ffebe97f112ab6dab33</id>
<content type='text'>
This ports the "combined diff" to diff-files so that differences
to the working tree files since stage 2 and stage 3 are shown
the same way as combined diff output from diff-tree for the
merge commit would be shown if the current working tree files
are committed.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-files: show diffs with stage0 and unmerged stage at the same time.</title>
<updated>2005-11-30T10:17:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-30T10:16:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15bf57a18aaf10c038e2026dfe54281edbb6080a'/>
<id>urn:sha1:15bf57a18aaf10c038e2026dfe54281edbb6080a</id>
<content type='text'>
After thinking about it more, I realized that much of the change
I did on top of Linus' version does not make much sense.  This
commit reverts it so that it by default shows diffs with stage0
paths or stage2 paths with working tree; the unmerged stage to
use can be overridden with -1/-2/-3 option (-2 is the default so
essentially is a no-op).

When the index file is unmerged, we are by definition in the
middle of a conflicting merge, and we should show the diff with
stage 2 by default.  More importantly, paths without conflicts
are updated in the working tree and collapsed to stage0 in the
index, so showing diff with stage0 at the same time does not
hurt.  In normal cases, stage0 entries should be in sync with
the working tree files and does not clutter the output.  It even
helps the user to realize that the working tree has local
changes unrelated to the merge and remember to be careful not to
do a "git-commit -a" after resolving the conflicts.

When there is no unmerged entries, giving diff_unmerged_stage a
default value of 2 does not cause any harm, because it would not
be used anyway.  So in all, always showing diff between stage0
paths and unmerged entries from a stage (defaulting to 2) is the
right thing to do, as Linus originally did.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-files: -1/-2/-3 to diff against unmerged stage.</title>
<updated>2005-11-30T08:14:18Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-11-30T05:06:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10637b84d91cf8870d1db8609a10dc5e58722378'/>
<id>urn:sha1:10637b84d91cf8870d1db8609a10dc5e58722378</id>
<content type='text'>
While resolving conflicted merge, it was not easy to compare the
working tree file with unmerged index entries.  This commit
introduces new options -1/-2/-3 (with synonyms --base, --ours,
and --theirs) to compare working tree files with specified
stages.

When none of these options are given, the command defaults to -2
if the index file is unmerged, otherwise it acts as before.

[jc: majorly butchered from the version Linus originally posted.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Move diff.renamelimit out of default configuration.</title>
<updated>2005-11-22T07:00:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-22T06:52:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ce392f4826558357af2b2c7eb6ad876fdb53a91'/>
<id>urn:sha1:9ce392f4826558357af2b2c7eb6ad876fdb53a91</id>
<content type='text'>
Otherwise we would end up linking all the unneeded stuff into git-daemon
only to link with git_default_config.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Teach "git diff" to handle filenames starting with '-'</title>
<updated>2005-10-18T07:16:45Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-10-18T07:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea51d416c02bb26e9d7600f87b27deb42752e6b5'/>
<id>urn:sha1:ea51d416c02bb26e9d7600f87b27deb42752e6b5</id>
<content type='text'>
It adds "--" to the git-diff.sh scripts, to keep any filenames that start
with a "-" from being confused with an option.

But in order to do that, it needs to teach git-diff-files to honor "--".

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