"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <Todd.Miller@sudo.ws>
Subject:
Re: commit -F
To:
Stefan Sperling <stsp@stsp.name>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 28 Jan 2021 08:58:10 -0700

Download raw body.

Thread
  • Stefan Sperling:

    commit -F

    • Todd C. Miller:

      commit -F

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