git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Faye-Lund <kusmabite@googlemail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jakub Narebski <jnareb@gmail.com>,
	Stefan Hajnoczi <stefanha@gmail.com>,
	git@vger.kernel.org, Michael J Gruber <git@drmicha.warpmail.net>
Subject: Re: Local unset override global options
Date: Mon, 12 Apr 2010 20:36:12 +0200	[thread overview]
Message-ID: <p2r40aa078e1004121136xe64cf1ceq6d392402107d6985@mail.gmail.com> (raw)
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:
> 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

  reply	other threads:[~2010-04-12 18:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-10  6:54 Local unset override global options Stefan Hajnoczi
2010-04-12  8:13 ` Michael J Gruber
2010-04-12  8:23   ` Stefan Hajnoczi
2010-04-12  8:28     ` Michael J Gruber
2010-04-12  8:53       ` Jakub Narebski
2010-04-12 15:47         ` Junio C Hamano
2010-04-12 17:02           ` Jakub Narebski
2010-04-12 18:18             ` Junio C Hamano
2010-04-12 18:36               ` Erik Faye-Lund [this message]
2010-04-12 21:07               ` Jakub Narebski
2010-04-12  8:35   ` Junio C Hamano
2010-04-12  8:43     ` Stefan Hajnoczi
2010-04-12 15:48       ` Junio C Hamano
2010-04-12 16:07         ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=p2r40aa078e1004121136xe64cf1ceq6d392402107d6985@mail.gmail.com \
    --to=kusmabite@googlemail.com \
    --cc=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jnareb@gmail.com \
    --cc=kusmabite@gmail.com \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).