diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2008-08-28 20:02:12 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-28 20:50:10 -0700 |
commit | 4f38f6b5bafb1f7f85c7b54d0bb0a0e977cd947c (patch) | |
tree | 899a49f15362f957cf67c71b23f9435e5600ebf6 /t/t4003-diff-rename-1.sh | |
parent | ctype.c: protect tiny C preprocessor constants (diff) | |
download | tgif-4f38f6b5bafb1f7f85c7b54d0bb0a0e977cd947c.tar.xz |
diff*: fix worktree setup
This fixes "git diff", "git diff-files" and "git diff-index" to work
correctly under worktree setup. Because diff* family works in many modes
and not all of them require worktree, Junio made a nice summary
(with a little modification from me):
* diff-files is about comparing with work tree, so it obviously needs a
work tree;
* diff-index also does, except "diff-index --cached" or "diff --cached TREE"
* no-index is about random files outside git context, so it obviously
doesn't need any work tree;
* comparing two (or more) trees doesn't;
* comparing two blobs doesn't;
* comparing a blob with a random file doesn't;
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4003-diff-rename-1.sh')
0 files changed, 0 insertions, 0 deletions