commit | ab892a19e83edd1cf9a767bc09d3239f72469d05 | [log] [tgz] |
---|---|---|
author | Christian Couder <chriscool@tuxfamily.org> | Tue Jan 19 05:26:00 2010 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Sat Mar 06 20:06:50 2010 -0800 |
tree | c642dab6edcaafe10e5d1f14c04fd21efbf662ed | |
parent | 7349df1142a8dba579c015b51805cc290fcb4e6e [diff] |
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 <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>