Skip to content

Commit

Permalink
Merge branch 'ab/maint-reset-mixed-w-pathspec-advice'
Browse files Browse the repository at this point in the history
* ab/maint-reset-mixed-w-pathspec-advice:
  reset: suggest what to do upon "git reset --mixed <paths>"
  • Loading branch information
Junio C Hamano committed Aug 31, 2010
2 parents 381b2e7 + a4941a8 commit 0c1c798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 0c1c798

Please sign in to comment.