threads / discuss / 24742

--mixed option is deprecated with paths

Subject: --mixed option is deprecated with paths

## tl;dr

5 messages between Aug 14, 2010 and Aug 14, 2010.

replies: 4people: 3as markdown or json

Ralf Ebert· Aug 14, 2010, 18:40 UTC · re: Ævar Arnfjörð Bjarmason · lore

Re: --mixed option is deprecated with paths

On 14.08.2010 17:23, Ævar Arnfjörð Bjarmason wrote:
> So what should I use instead? 0e5a7faa which introduced it doesn't say.

It doesn't currently exist, but I'm pretty sure it should be called 'git unstage' :)

Ævar Arnfjörð Bjarmason· Aug 14, 2010, 18:55 UTC · re: Ralf Ebert · lore

Re: --mixed option is deprecated with paths

On Sat, Aug 14, 2010 at 18:40, Ralf Ebert <info@ralfebert.de> wrote:
Show 6 quoted lines
> On 14.08.2010 17:23, Ævar Arnfjörð Bjarmason wrote:
>>
>> So what should I use instead? 0e5a7faa which introduced it doesn't say.
>
> It doesn't currently exist, but I'm pretty sure it should be called 'git
> unstage' :)

Then perhaps it should be undeprecated? If what you say is correct it's been whining about that since 2007 with no alternative, while doing what I mean when I run it.

Ralf Ebert· Aug 14, 2010, 19:12 UTC · re: Ævar Arnfjörð Bjarmason · lore

Re: --mixed option is deprecated with paths

On 14.08.2010 20:55, Ævar Arnfjörð Bjarmason wrote:
Show 11 quoted lines
> On Sat, Aug 14, 2010 at 18:40, Ralf Ebert<info@ralfebert.de>  wrote:
>> On 14.08.2010 17:23, Ævar Arnfjörð Bjarmason wrote:
>>>
>>> So what should I use instead? 0e5a7faa which introduced it doesn't say.
>>
>> It doesn't currently exist, but I'm pretty sure it should be called 'git
>> unstage' :)
>
> Then perhaps it should be undeprecated? If what you say is correct
> it's been whining about that since 2007 with no alternative, while
> doing what I mean when I run it.

Sorry, I misremembered '--mixed' again, '--mixed' is the default and it doesn't complain if you just omit it, and if I read&tried right, 'git reset <file>' does the same as 'git reset --mixed <file>'.

Junio C Hamano· Aug 14, 2010, 19:42 UTC · re: Ævar Arnfjörð Bjarmason · lore

Re: --mixed option is deprecated with paths

Æ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.

← back to recent threads