<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4013/diff.diff_--name-status_dir2_dir, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2008-05-24T07:16:39Z</updated>
<entry>
<title>"git diff": do not ignore index without --no-index</title>
<updated>2008-05-24T07:16:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-05-24T05:28:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0569e9b8cea20d5eedfec66730a9711a0907ab0d'/>
<id>urn:sha1:0569e9b8cea20d5eedfec66730a9711a0907ab0d</id>
<content type='text'>
Even if "foo" and/or "bar" does not exist in index, "git diff foo bar"
should not change behaviour drastically from "git diff foo bar baz" or
"git diff foo".  A feature that "sometimes works and is handy" is an
unreliable cute hack.

"git diff foo bar" outside a git repository continues to work as a more
colourful alternative to "diff -u" as before.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff --no-index: fix --name-status with added files</title>
<updated>2007-07-03T20:44:30Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-07-03T15:01:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3cb567386d5d0349bfb5e3aaf85e973faf685dda'/>
<id>urn:sha1:3cb567386d5d0349bfb5e3aaf85e973faf685dda</id>
<content type='text'>
Without this patch, an added file would be reported as /dev/null.

Noticed by David Kastrup.

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