On Thu, May 04, 2023 at 11:35:32AM -0400, Hugo Villeneuve wrote:

[...]
> > > > > For this, I do not want to use the global entries like smtpUser,
> > > > > tocmd, etc. Unfortunately, these entries are set to the default value
> > > > > in /etc/config.
> > > > 
> > > > Yes, but you could explicitly set them to empty strings in your
> > > > project's .git/config.
[...]
> > > no, I tried it and it doesn't work.
> > > 
> > > Setting an entry to an empty string is not the same as having this entry
> > > "not defined" for some applications.
> > > 
> > > For example, if you look at the git sendemail source code, you will see 
> > > take
> > > a different action is taken depending if the "tocmd" entry is undefined or
> > > is set to an empty string.
[...]
> > The git-send-email manual page [1] mentions the possibility of having named
> > "identities" for sending mail - the sendemail.identity configuration 
> > variable
> > and the "namespaced" settings «sendemail.<identity>.*».
> > 
> > Wouldn't it be possible to (ab)use this mechainsm in the following way:
[...]
> yes, it works, but it means that I must rename the default identity
> [sendemail] to something like [sendemail.default] like you suggested.
> 
> But doing so means that for every project that needs to use the default
> identity, I must now pass the command line option "--identity default" when
> using git sendemail, which I find inconvenient and also incompatible with
> some automated scripts I have developped to call git sendemail.
[...]

OK, looks like this issue might be worth bringing up on the main Git list
then. Maybe Git could actually implement some value - or type of value -
meaning "explicitly undefined", or something like this.

Please consult [2] before posting there if you're not familiar with the
caveats of doing so ;-)

 2. 
https://gist.github.com/tfnico/4441562#writing-an-email-to-the-developers-list

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20230504161329.76f2exejmii3xkf7%40carbon.

Reply via email to