From: Thomas Gummerer Date: Mon, 16 Dec 2013 20:19:23 +0000 (+0100) Subject: diff: add test for --no-index executed outside repo X-Git-Tag: v1.9-rc0~49^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8a19dfa1aa5bbbc6e3ea8553e418ad4f78448cb3?hp=8a19dfa1aa5bbbc6e3ea8553e418ad4f78448cb3 diff: add test for --no-index executed outside repo 470faf9 diff: move no-index detection to builtin/diff.c breaks the error message for "git diff --no-index", when the command is executed outside of a git repository and the wrong number of arguments are given. 6df5762 diff: don't read index when --no-index is given fixes the problem. Add a test to guard against similar breakages in the future. Signed-off-by: Thomas Gummerer Signed-off-by: Junio C Hamano ---