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. */
|
* affecting the working tree nor HEAD. */
|
||||||
if (i < argc) {
|
if (i < argc) {
|
||||||
if (reset_type == MIXED)
|
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)
|
else if (reset_type != NONE)
|
||||||
die("Cannot do %s reset with paths.",
|
die("Cannot do %s reset with paths.",
|
||||||
reset_type_names[reset_type]);
|
reset_type_names[reset_type]);
|
||||||
|
Loading…
Reference in New Issue
Block a user