Re: [PATCH] reset: Better warning message on git reset --mixed <paths>
- From
Miles Bader <miles@gnu.org>
- Date
- Aug 15, 2010, 02:43 UTC
- Message-ID
- <87tymwzjbk.fsf@catnip.gol.com>
- In-Reply-To
- <7vvd7chcj4.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
>> 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"
-Miles
-- Brain, n. An apparatus with which we think we think.