From: Ævar Arnfjörð Bjarmason Date: Sun, 15 Aug 2010 08:38:16 GMT Subject: Re: [PATCH] reset: Better warning message on git reset --mixed Message-ID: In-Reply-To: <87tymwzjbk.fsf@catnip.gol.com> On Sun, Aug 15, 2010 at 02:43, Miles Bader wrote: > 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" Do you have suggestions for alternatives for "git reset [ --soft | --merge | --keep ] -- " too? Since I'm working on this anyway I might roll that in.