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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: Remote got repositories and small typo in man page
To:
Timo Myyrä <timo.myyra@bittivirhe.fi>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 3 Dec 2020 21:09:05 +0100

Download raw body.

Thread
On Thu, Dec 03, 2020 at 09:29:23PM +0200, Timo Myyrä wrote:
> So it indeed requires that extra step. I need to play with this a bit more
> to propely grasp the work flow which would work with this. I also
> started to slowly work to see if I can make emacs support got in its vc
> package. Seems perfect project as I don't know elisp nor how to work
> with got but I hope to learn as I go.
> 
> Regarding that, is there idea to support reading the commit messages
> from file in 'got commit' command? I'm not sure if emacs can nicely
> handle the case that got invokes editor on temp file if no message is
> provided. 

The reason 'got commit -F logmsg.txt' doesn't exist is that 'commit -F'
can easily lead to accidents where e.g. a source code file that is
supposed to be committed ends up being used as the log message.

But I recognize that the lack of -F makes it harder to script 'got commit'.

If you can properly control the argument vector passed to the got process
from emacs, then injecting an entire log message via 'got commit -m' will
work. If that's too difficult then, sure, we can add commit -F.