]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
rm: introduce advice.rmHints to shorten messages
authorMathieu Lienard--Mayor <Mathieu.Lienard--Mayor@ensimag.imag.fr>
Wed, 12 Jun 2013 08:06:44 +0000 (10:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2013 23:59:55 +0000 (16:59 -0700)
commit7e30944622573ebdf87beed057b098af7360234c
treef955e84c0c9f38db34106ad261a6ceaff4153354
parent914dc0289d1df75cfa744cea8ec84cb529cbc791
rm: introduce advice.rmHints to shorten messages

Introduce advice.rmHints to choose whether to display advice or not
when git rm fails. Defaults to true, in order to preserve current behavior.

As an example, the message:
error: 'foo.txt' has changes staged in the index
(use --cached to keep the file, or -f to force removal)

would look like, with advice.rmHints=false:
error: 'foo.txt' has changes staged in the index

Signed-off-by: Mathieu Lienard--Mayor <Mathieu.Lienard--Mayor@ensimag.imag.fr>
Signed-off-by: Jorge Juan Garcia Garcia <Jorge-Juan.Garcia-Garcia@ensimag.imag.fr>
Signed-off-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
advice.c
advice.h
builtin/rm.c
t/t3600-rm.sh