Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [PATCH 2/2] rm: introduce advice.rmHints to shorten messages

From: Mathieu Liénard--Mayor <hidden>
Date: 2016-06-15 22:57:39

Le 2013-06-08 16:01, Ramkumar Ramachandra a écrit :
Mathieu Lienard--Mayor wrote:
quoted
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=true:
        error: 'foo.txt' has changes staged in the index
Um, have you switched the true with false?  advice.* variables are
true by default, and I turn off all of them.
Whoops, my bad, I obviously meant false.
Also, I think you can extend this to also remove add-advice.  Why
would someone want to turn off advice from rm, but not add?  (Unsure
about this)
I'm not so sure i understand. Do you mean rmHints should deactivate 
addHints aswell, or do you mean that since we're introducing rmHints it 
would be natural to introduce addHints ?
quoted
Similarly to advice.*, advice.rmHints has been added
to the config variables. By default, it is set to false, in order to
keep the messages the same as before. When set to true,  advice
are no longer included in the error messages.
Ugh, why this roundabout-passive-past tone?  Use imperative tone like 
this:
Sorry about that, we'll work on it.
Introduce advice.rmHints to control the whether to display advice 
when
using 'git rm'.  Defaults to true, preserving current behavior.
-- 
Mathieu Liénard--Mayor,
2nd year at Grenoble INP - ENSIMAG
(+33)6 80 56 30 02
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help