From: Miles Bader Date: Sun, 15 Aug 2010 02:43:59 GMT Subject: Re: [PATCH] reset: Better warning message on git reset --mixed Message-ID: <87tymwzjbk.fsf@catnip.gol.com> In-Reply-To: <7vvd7chcj4.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: >> warning: --mixed with paths is deprecated; use 'git reset -- ' instead > > That sounds helpful. > > We've been saying this form is deprecated since 1.5.4; a better > alternative may be to make this into an error in the next release, > though. On a similar note, how about a more helpful error message for "git reset --hard PATH"? It took me _ages_ to figure out that I needed to do "git checkout PATH" to get that effect... e.g.: $ git reset --hard load-lua.cc fatal: --hard cannot be used with paths; use "git checkout -- instead" -Miles -- Brain, n. An apparatus with which we think we think.