Re: [PATCH] reset: Better warning message on git reset --mixed <paths>
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 15, 2010, 08:38 UTC
- Message-ID
- <AANLkTin3zyPvs3GjOt3=q6dOofFA2ba0sBAzt3=Ka1Wn@mail.gmail.com>
- In-Reply-To
- <87tymwzjbk.fsf@catnip.gol.com>
On Sun, Aug 15, 2010 at 02:43, Miles Bader <miles@gnu.org> wrote:
Show 17 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: >>> warning: --mixed with paths is deprecated; use 'git reset -- <paths>' 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 -- <paths> instead"
Do you have suggestions for alternatives for "git reset [ --soft | --merge | --keep ] -- <paths>" too? Since I'm working on this anyway I might roll that in.