# --mixed option is deprecated with paths

5 messages from 2010-08-14 to 2010-08-14. Participants: Ævar Arnfjörð Bjarmason, Ralf Ebert, Junio C Hamano.
Thread: https://gitlist.dev/t/24742

## Ævar Arnfjörð Bjarmason, 2010-08-14 15:23

Subject: --mixed option is deprecated with paths
Message-ID: <AANLkTik_NuG3YKMknwh4fAK09kTH0tK1f08MzsexUMcV@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTik_NuG3YKMknwh4fAK09kTH0tK1f08MzsexUMcV%40mail.gmail.com

```
    $ 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.

```

## Ralf Ebert, 2010-08-14 18:40

Subject: Re: --mixed option is deprecated with paths
Message-ID: <i46nvf$fa$1@dough.gmane.org>
URL: https://gitlist.dev/e/i46nvf%24fa%241%40dough.gmane.org
In-Reply-To: <AANLkTik_NuG3YKMknwh4fAK09kTH0tK1f08MzsexUMcV@mail.gmail.com>

```
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, 2010-08-14 18:55

Subject: Re: --mixed option is deprecated with paths
Message-ID: <AANLkTimT7jTQeN1qUBSWTwEEt9jWirwwS3bSHT7OysUs@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimT7jTQeN1qUBSWTwEEt9jWirwwS3bSHT7OysUs%40mail.gmail.com
In-Reply-To: <i46nvf$fa$1@dough.gmane.org>

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

```

## Ralf Ebert, 2010-08-14 19:12

Subject: Re: --mixed option is deprecated with paths
Message-ID: <i46pq6$6ge$1@dough.gmane.org>
URL: https://gitlist.dev/e/i46pq6%246ge%241%40dough.gmane.org
In-Reply-To: <AANLkTimT7jTQeN1qUBSWTwEEt9jWirwwS3bSHT7OysUs@mail.gmail.com>

```
On 14.08.2010 20:55, Ævar Arnfjörð Bjarmason wrote:
> 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, 2010-08-14 19:42

Subject: Re: --mixed option is deprecated with paths
Message-ID: <7v7hjthtfy.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v7hjthtfy.fsf%40alter.siamese.dyndns.org
In-Reply-To: <AANLkTik_NuG3YKMknwh4fAK09kTH0tK1f08MzsexUMcV@mail.gmail.com>

```
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:

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

```
