Discussion:
--mixed option is deprecated with paths
Ævar Arnfjörð Bjarmason
2010-08-14 15:23:04 UTC
Permalink
$ 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:47 UTC
Permalink
So what should I use instead? 0e5a7faa which introduced it doesn't sa=
y.

It doesn't currently exist, but I'm pretty sure it should be called 'gi=
t=20
unstage' :)
Ævar Arnfjörð Bjarmason
2010-08-14 18:55:31 UTC
Permalink
So what should I use instead? 0e5a7faa which introduced it doesn't s=
ay.
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:06 UTC
Permalink
Post by Ævar Arnfjörð Bjarmason
So what should I use instead? 0e5a7faa which introduced it doesn't =
say.
Post by Ævar Arnfjörð Bjarmason
It doesn't currently exist, but I'm pretty sure it should be called =
'git
Post by Ævar Arnfjörð Bjarmason
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=
=20
doesn't complain if you just omit it, and if I read&tried right, 'git=20
reset <file>' does the same as 'git reset --mixed <file>'.
Junio C Hamano
2010-08-14 19:42:41 UTC
Permalink
Post by Ævar Arnfjörð Bjarmason
$ git reset --mixed t/Makefile
warning: --mixed option is deprecated with paths.
M t/Makefile
So what should I use instead? 0e5a7faa which introduced it doesn't sa=
y.

You should say nothing. "git reset [<commit>] <path>" is about resetti=
ng
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.

Continue reading on narkive:
Search results for '--mixed option is deprecated with paths' (Questions and Answers)
87
replies
i have no friends ?
started 2015-04-18 10:36:57 UTC
friends
Loading...