git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: --mixed option is deprecated with paths

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2010, 19:42 UTC
Message-ID
<7v7hjthtfy.fsf@alter.siamese.dyndns.org>
In-Reply-To
<AANLkTik_NuG3YKMknwh4fAK09kTH0tK1f08MzsexUMcV@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 6 quoted lines
>     $ git reset --mixed t/Makefile
>     warning: --mixed option is deprecated with paths.
>     Unstaged changes after reset:
>     M       t/Makefile
>
> So what should I use instead? 0e5a7faa which introduced it doesn't say.

You should say nothing. "git reset [<commit>] <path>" is about resetting the index entry selectively, and there is no room for any mode to be involved (iow "git reset --soft t/Makefile" does not make any sense), hence deprecation.

Previous: Ralf Ebert
Message 5 of 5 in “--mixed option is deprecated with paths”
  1. Ævar Arnfjörð BjarmasonAug 14, 2010
  2. Ralf EbertAug 14, 2010
  3. Ævar Arnfjörð BjarmasonAug 14, 2010
  4. Ralf EbertAug 14, 2010
  5. Junio C HamanoAug 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.