diff: handle relative paths in no-index
authorJeff King <peff@peff.net>
Thu, 21 Jun 2012 18:09:50 +0000 (14:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jun 2012 17:20:18 +0000 (10:20 -0700)
commit546e0fd9e918b2ea3d9943124641d3b6af59a4fe
tree83ca9e34a696e313314729c50c69ae76e389f22b
parent785ee4960c3d334cbc2b17ab74d2cebdf1b4db64
diff: handle relative paths in no-index

When diff-no-index is given a relative path to a file outside the
repository, it aborts with error. However, if the file is given
using an absolute path, the diff runs as expected. The two cases
should be treated the same.

Tests and commit message by Tim Henigan.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
diff-no-index.c
setup.c
t/t4053-diff-no-index.sh