summaryrefslogtreecommitdiff
path: root/diff-no-index.c
AgeCommit message (Collapse)Author
2008-05-27git diff --no-index: default to page like other diff frontendsJunio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-05-27git-diff: allow --no-index semantics a bit moreJunio C Hamano
Even when inside a git work tree, if two paths are given and at least one is clearly outside the work tree, it cannot be a request to diff a tracked path anyway; allow such an invocation to use --no-index semantics. Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-05-24"git diff": do not ignore index without --no-indexJunio C Hamano
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>