Skip to content

Commit 0c1c798

Browse files
committed
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>"
2 parents 381b2e7 + a4941a8 commit 0c1c798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
318318
* affecting the working tree nor HEAD. */
319319
if (i < argc) {
320320
if (reset_type == MIXED)
321-
warning("--mixed option is deprecated with paths.");
321+
warning("--mixed with paths is deprecated; use 'git reset -- <paths>' instead.");
322322
else if (reset_type != NONE)
323323
die("Cannot do %s reset with paths.",
324324
reset_type_names[reset_type]);

0 commit comments

Comments
 (0)