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

Re: [PATCH/RFC] config: Give error message when not changing a multivar

From: Jeff King <hidden>
Date: 2016-06-15 22:51:15

On Tue, May 17, 2011 at 04:03:00PM +0200, Michael J Gruber wrote:
quoted
quoted
warning: remote.repoor.push has multiple values
error: Use a regexp, --add or --set-all to change remote.repoor.push.
[...]
OK, makes sense, I just wanted to request for comments early enough -
someone might think we should remove the warning from the present site
and make all callers deal with the return codes. But I don't think it's
worth it, and we have other places where we warn first, then error out.
You could maybe make it a little more clear what is going on with:

  warning: remote.repoor.push has multiple values
  error: cannot overwrite multiple values with a single value
         Use a regexp, --add, or --set-all to change remote.repoor.push

Then the error stands on its own, but the warning is not a bad thing to
have, also.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help