From: Junio C Hamano Date: Thu, 14 Dec 2006 20:41:39 GMT Subject: Re: [PATCH] git-reset [--mixed] [--] ... Message-ID: <7v3b7i2osc.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Peter Baumann writes: > Why not make > > git-reset --hard -- file > > aquivalent to > > git-checkout -- file Theoretically we could, but I'd rather keep "reset --hard" something that people would think a bit about before actually running (I am not enthused about giving "reset --mixed" this feature for the same reason, but I think it is safe enough). I'd want to avoid overloading different meanings to the --hard form. Mis-typing checkout (say, accidentally having before "-- file" part while cut & paste) would not be so dangeous; mis-typing "reset --hard" the same way could be disastrous. > PS: Your patch didn't apply cleanly. As I said there is one bug I've fixed in my tree but the branches were not pushed out yet.