Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ab/maint-reset-mixed-w-pathspec-advice'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 31 Aug 2010 23:24:36 +0000
(16:24 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 31 Aug 2010 23:24:36 +0000
(16:24 -0700)
* ab/maint-reset-mixed-w-pathspec-advice:
reset: suggest what to do upon "git reset --mixed <paths>"
builtin/reset.c
patch
|
blob
|
history
raw
(from parent 1:
381b2e7
)
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 1283068fd24c371e39f0271d01dd6b3aac437d4b..0037be4693bbd875e644df13ce4a9fae31e7378c 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-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]);