author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Fri, 21 Aug 2009 08:57:59 +0000 (10:57 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 22 Aug 2009 04:19:35 +0000 (21:19 -0700) | ||
commit | 3deffc52d88df73af72a80a406eb863880bb4d2a | |
tree | 2480b9d9bf4492de8279531ead66bd32ee5032e0 | tree | snapshot |
parent | 43673fddd3c8a0e2cadc8ba724552531fac55464 | commit | diff |
reset: make the reminder output consistent with "checkout"
git reset without argument displays a summary of the local modification,
like this:
$ git reset
Makefile: locally modified
Some people have problems with this; they look like an error message.
This patch makes its output mimic how "git checkout $another_branch"
reports the paths with local modifications. "git add --refresh --verbose"
is changed in the same way.
It also adds a header to make it clear that the output is informative,
and not an error.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
git reset without argument displays a summary of the local modification,
like this:
$ git reset
Makefile: locally modified
Some people have problems with this; they look like an error message.
This patch makes its output mimic how "git checkout $another_branch"
reports the paths with local modifications. "git add --refresh --verbose"
is changed in the same way.
It also adds a header to make it clear that the output is informative,
and not an error.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
builtin-add.c | diff | blob | history | |
builtin-reset.c | diff | blob | history | |
cache.h | diff | blob | history | |
read-cache.c | diff | blob | history | |
t/t7102-reset.sh | diff | blob | history |