Merge branch 'tg/diff-no-index-refactor'
commit73b063130befa7475316a142343de87da61f31e3
authorJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2013 22:58:17 +0000 (27 14:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Dec 2013 22:58:17 +0000 (27 14:58 -0800)
tree3079b4e1f628ff89bcc0a4e5dbb42985e2c7b3a0
parent6904f9aa5ba7666cdb5390733225e123fe25526b
parentaad90e85f8e6368533aa30c072b8e2bd7adafa53
Merge branch 'tg/diff-no-index-refactor'

"git diff ../else/where/A ../else/where/B" when ../else/where is
clearly outside the repository, and "git diff --no-index A B", do
not have to look at the index at all, but we used to read the index
unconditionally.

* tg/diff-no-index-refactor:
  diff: avoid some nesting
  diff: add test for --no-index executed outside repo
  diff: don't read index when --no-index is given
  diff: move no-index detection to builtin/diff.c
builtin/diff.c
diff.h