Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
What's wrong with resetting with both --mixed and paths?#1876
-
The Lines 97 to 105 ine880c33
The issue URL is broken and seems it may not be archived. Is more known about this issue, and is there anything that can be replaced with? |
BetaWas this translation helpful?Give feedback.
All reactions
Although I can't be certain there isn't further relevant information in the lost issue, I think I've figured this out. It's much more straightforward than I'd feared and indeed trying it out as you suggested in#1876 (comment) led directly to the answer.
Runninggit reset --mixed --path
always shows a warning. For example:
> git diff --staged --stat git/__init__.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-)> git reset --mixed -- git/__init__.pywarning: --mixed with paths is deprecated; use 'git reset -- <paths>' instead.Unstaged changes after reset:M git/__init__.py
The suggestion of what to do instead was added ingit/git@a4941a8, but the behavio…
Replies: 2 comments
-
Under the assumption that the project was moved from Maybe one can try |
BetaWas this translation helpful?Give feedback.
All reactions
-
Although I can't be certain there isn't further relevant information in the lost issue, I think I've figured this out. It's much more straightforward than I'd feared and indeed trying it out as you suggested in#1876 (comment) led directly to the answer. Running
The suggestion of what to do instead was added ingit/git@a4941a8, but the behavior of issuing a deprecation message is older than that. It looks like it came in atgit/git@0e5a7fa when As for why oneshouldn't write I'll open a small PR to clarify the comment. |
BetaWas this translation helpful?Give feedback.