| author | Junio C Hamano <gitster@pobox.com> | |
| Sat, 24 May 2008 05:28:56 +0000 (22:28 -0700) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Sat, 24 May 2008 07:16:39 +0000 (00:16 -0700) | ||
| commit | 0569e9b8cea20d5eedfec66730a9711a0907ab0d | |
| tree | 768d9acf222cb72826cd52279383b664092ab525 | tree | snapshot |
| parent | 6304c29d518206b0780291a02f94f435abf82d74 | commit | diff |
"git diff": do not ignore index without --no-index
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 <gitster@pobox.com>
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 <gitster@pobox.com>
| Makefile | diff | blob | history | |
| builtin-diff.c | diff | blob | history | |
| diff-lib.c | diff | blob | history | |
| diff-no-index.c | [new file with mode: 0644] | blob |
| diff.h | diff | blob | history | |
| t/t4013-diff-various.sh | diff | blob | history | |
| t/t4013/diff.diff_--name-status_dir2_dir | diff | blob | history | |
| t/t4013/diff.diff_--no-index_--name-status_dir2_dir | [new file with mode: 0644] | blob |