guix-devel
[Top][All Lists]
Advanced

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

Re: etc/commiter.scm should not commit


From: Csepp
Subject: Re: etc/commiter.scm should not commit
Date: Tue, 24 Jan 2023 16:42:35 +0100

Ekaitz Zarraga <ekaitz@elenq.tech> writes:

> ------- Original Message -------
> On Tuesday, January 24th, 2023 at 2:50 AM, Csepp <raingloom@riseup.net> wrote:
>
>
>> There have been countless times when I was using etc/commiter.scm and it
>> commited more than it should have and then slapped an incorrect message
>> on it.
>> I think it would make a lot more sense if adding changes was left up to
>> the human at the keyboard (at least by default) and the script was
>> invoked only when editing the commit message.
>
> That could be done on a git hook but developers would need to configure it.

It does not need to be a hook, it can be done by setting EDITOR or
VISUAL, or commiter.scm can even retain its current interface and just
internally git add everything and call the script that would decide the
message based on the staged diff.



reply via email to

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