From: Christian Couder Date: Tue, 19 Jan 2010 04:26:00 +0000 (+0100) Subject: reset: disallow "reset --keep" outside a work tree X-Git-Tag: v1.7.1-rc0~53^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ab892a19e83edd1cf9a767bc09d3239f72469d05?hp=ab892a19e83edd1cf9a767bc09d3239f72469d05 reset: disallow "reset --keep" outside a work tree It is safer and consistent with "--merge" and "--hard" resets to disallow "git reset --keep" outside a work tree. So let's just do that and add some tests while at it. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano ---