mirror of
https://github.com/git/git.git
synced 2024-11-30 05:23:49 +08:00
Merge branch 'ab/maint-reset-mixed-w-pathspec-advice'
* ab/maint-reset-mixed-w-pathspec-advice: reset: suggest what to do upon "git reset --mixed <paths>"
This commit is contained in:
commit
0c1c798f20
@ -318,7 +318,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
|
||||
* affecting the working tree nor HEAD. */
|
||||
if (i < argc) {
|
||||
if (reset_type == MIXED)
|
||||
warning("--mixed option is deprecated with paths.");
|
||||
warning("--mixed with paths is deprecated; use 'git reset -- <paths>' instead.");
|
||||
else if (reset_type != NONE)
|
||||
die("Cannot do %s reset with paths.",
|
||||
reset_type_names[reset_type]);
|
||||
|
Loading…
Reference in New Issue
Block a user