[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gameoftrees
Subject:    Re: commit -F
From:       "Todd C. Miller" <Todd.Miller () sudo ! ws>
Date:       2021-01-28 15:58:10
Message-ID: 474c8def2b187f71 () sudo ! ws
[Download RAW message or body]

On Thu, 28 Jan 2021 01:16:39 +0100, Stefan Sperling wrote:

> The patch below adds commit -F, but with a twist: The prepared log message
> is still shown in the editor. This gives the user a chance to double-check
> the message and it can simply be saved if everything looks good.
> If the message looks bad it can be fixed in the editor before a commit
> is created.

I think this is a good compromise between utility and safety.

> Because commit -F can be useful for scripting there is a second option
> which disables the editor: -N
>
> So 'got commit -F' behaves reasonably safe, and 'got commit -N -F' behaves
> like 'commit -F' behaves elsewhere.

OK millert@

 - todd


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic