Re: [PATCH] git-reset [--mixed] <tree> [--] <paths>...
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 14, 2006, 20:41 UTC
- Message-ID
- <7v3b7i2osc.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <slrneo2atm.nqa.Peter.B.Baumann@xp.machine.xx>
Peter Baumann <Peter.B.Baumann@stud.informatik.uni-erlangen.de> writes:
Show 7 quoted lines
> Why not make > > git-reset --hard <treeish> -- file > > aquivalent to > > git-checkout <treeish> -- 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 <RETURN> 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.