guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#66618] [PATCH] etc: gitconfig: Remove the default email address to


From: Simon Tournier
Subject: [bug#66618] [PATCH] etc: gitconfig: Remove the default email address to avoid mistakes.
Date: Mon, 23 Oct 2023 11:49:23 +0200

Hi Maxim,

On Fri, 20 Oct 2023 at 11:44, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

>> Here, the default
>>
>>      [sendemail]
>>             to = guix-patches@gnu.org
>>
>> makes something implicit – which is not necessary bad – but it hides
>> potential errors – which is not good.
>
> But that's true for any automation of git.

I disagree.  The aim of automation is to hide burden without being
error-prone.


>                                             If we follow that logic we
> can remove the other git configurations because they may be surprising,

The point is about being able to catch and adjust accordingly.  Except
this ’sendemail.to’ value, all the other values may be surprising but if
one is surprised, then one is aware of the non-default Git configuration
and thus one is able to adjust accordingly.

The issue with ’sendemail.to’ is that there is no surprise popping; for
being surprised, I need to be aware and here it does it in my back.

> and the send-email hook that notifies people, because that can again be
> surprising.

I disagree.  For example, I think ’sendemail.headerCmd’ is a good
default.  Because it hides the burden and correct my potential mistake.

Well, somehow there is “good” surprise and “bad” surprise.  For me,
’sendemail.to’ leads to “bad” surprise and ’sendemail.headerCmd’ leads
to “good” surprise.

For me, ’sendemail.headerCmd’ helps because it behaves in a way that
most users will expect the system to behave.  That’s POLA.  However,
’sendemail.to’ does not appear to me POLA because it hides my potential
mistake.

>                                           The small cost in surprise is
> offset by removing manual work for myself and I'd expect/hope other
> committers.

Well, from my point of view, it is possible to use other means for
removing some manual work.  For instance, it is possible to have an
alias in etc/gitconfig, as “git send-patches”.  Or it is possible to use
’sendemail.aliasesFile’ for having a short key to pass.  Or else.

You said:

        OK!  I'll leave this opened for a bit longer to allow for others to tip
        in, after which I'll do so.

and now you have two opinions by two Guix committers :-) – not
git-send-email experts though but having some habits for using it. ;-)

That’s said, I do not have a strong opinion either.  I can live with the
default value since I always explicitly uses ’--to=’. :-) And if this
default value suits your productivity, it is totally fine with me.

Cheers,
simon







reply via email to

[Prev in Thread] Current Thread [Next in Thread]