Re: Local unset override global options

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Monday, April 12, 2010 - 2:07 pm

Junio C Hamano wrote:

Isn't this only for git_config_bool and the like... oh, I see that
git_config_string does not consider no value case proper string value,
and warns that it is suitable only for boolean variables:

   if (!value)
                return config_error_nonbool(var);


True, after thinking a bit about this using no value to unset is 
a horrible, horrible hack.  git-send-email should be corrected to not
only check that there is value from config or command line option, but
also that it is sane (i.e. non-empty, or simply true-ish if we say
that smtpuser = "0" is not something we need to worry about supporting).


About ORIGINAL problem: I think it can be done by setting different
identities, and just switching them using sendemail.identity; for some
of those identities sendemail.<identity>.smtpuser can be not set.

-- 
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Local unset override global options, Stefan Hajnoczi, (Fri Apr 9, 11:54 pm)
Re: Local unset override global options, Michael J Gruber, (Mon Apr 12, 1:13 am)
Re: Local unset override global options, Stefan Hajnoczi, (Mon Apr 12, 1:23 am)
Re: Local unset override global options, Michael J Gruber, (Mon Apr 12, 1:28 am)
Re: Local unset override global options, Junio C Hamano, (Mon Apr 12, 1:35 am)
Re: Local unset override global options, Stefan Hajnoczi, (Mon Apr 12, 1:43 am)
Re: Local unset override global options, Jakub Narebski, (Mon Apr 12, 1:53 am)
Re: Local unset override global options, Junio C Hamano, (Mon Apr 12, 8:47 am)
Re: Local unset override global options, Junio C Hamano, (Mon Apr 12, 8:48 am)
Re: Local unset override global options, Stefan Hajnoczi, (Mon Apr 12, 9:07 am)
Re: Local unset override global options, Jakub Narebski, (Mon Apr 12, 10:02 am)
Re: Local unset override global options, Junio C Hamano, (Mon Apr 12, 11:18 am)
Re: Local unset override global options, Erik Faye-Lund, (Mon Apr 12, 11:36 am)
Re: Local unset override global options, Jakub Narebski, (Mon Apr 12, 2:07 pm)