git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Local unset override global options

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Apr 12, 2010, 18:36 UTC
Message-ID
<p2r40aa078e1004121136xe64cf1ceq6d392402107d6985@mail.gmail.com>
In-Reply-To
<7vvdbwk004.fsf@alter.siamese.dyndns.org>
On Mon, Apr 12, 2010 at 8:18 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 24 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
>
>> Junio C Hamano wrote:
>>> Jakub Narebski <jnareb@gmail.com> writes:
>>>
>>> > How does special case of no value, i.e.
>>> >
>>> >    [sendemail]
>>> >         smtpuser
>>>
>>> That is not a special case; that is "boolean true".
>>
>> Well, it is "boolean true" *if* git-config is used with '--bool'.
>>
>> If git-send-email.perl used "git config -l -z" to read all its config
>> variables at once into hash, like gitweb.perl does in the
>> git_parse_project_config() subroutine, it would be able to distinguish
>> between those the case of no value:
>>
>>     [sendemail]
>>          smtpuser
>
> If sendemail is ever re-written in C and use git_config() API, the above
> will become boolean.  Besides, even if you are sticking to sendemail.perl

Actually, I have a very very (very) rudimentary port of send-email in C. I worked on that mostly for Windows compatibility, but we already solved the issue for msysGit by supplying msmtp instead, so I haven't been working at it for quite some time. It's based on an older version of send-email, and is incomplete in many ways (no alias-support, for one), but most of the "tricky" parts are done AFAICT (SMTP with SSL if OpenSSL is available).

Is there any interest in this?

I think in the long run, it'd be beneficial for Git for Windows not to strictly depend on perl, but I don't really see that happening any time soon as there's just too many essential tools written in perl. Send-email is one of them (possibly one of the less essential tools for most Windows users, though).

-- 
Erik "kusma" Faye-Lund
Previous: Junio C HamanoNext: Jakub Narebski
Message 9 of 14 in “Local unset override global options”
  1. Stefan HajnocziApr 10, 2010
  2. Michael J GruberApr 12, 2010
  3. Stefan HajnocziApr 12, 2010
  4. Michael J GruberApr 12, 2010
  5. Jakub NarebskiApr 12, 2010
  6. Junio C HamanoApr 12, 2010
  7. Jakub NarebskiApr 12, 2010
  8. Junio C HamanoApr 12, 2010
  9. Erik Faye-LundApr 12, 2010
  10. Jakub NarebskiApr 12, 2010
  11. Junio C HamanoApr 12, 2010
  12. Stefan HajnocziApr 12, 2010
  13. Junio C HamanoApr 12, 2010
  14. Stefan HajnocziApr 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.