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

From:
Simon Harrison <info@simonh.uk>
Subject:
Re: Quickly copy commit id?
To:
Stefan Sperling <stsp@stsp.name>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 8 May 2026 09:41:22 +0100

Download raw body.

Thread
Understood. Copying the commit to the work tree from tog would be great.

8 May 2026 08:51:35 Stefan Sperling <stsp@stsp.name>:

> On Thu, May 07, 2026 at 04:32:47PM +0100, Simon Harrison wrote:
>> Hello. I'm wondering if there's a quick way to copy a commit id. If
>> not, would it be possible to add. Perhaps to tog? This would be very
>> useful for cherry picking.
>> 
>> Cheers,
>> 
>> Simon
> 
> X11 clipboard integration in tog would be very annoying for us to handle.
> There is nothing X11-specific in tog right now and I would rather avoid
> adding X11-specific things as a dependency. So copy-paste via X11 is not
> something I would want to support.
> 
> In relative small projects typing only the first 4 or 5 digits of
> a commit ID should work instead of copy-pasting the entire ID.
> 
> And there is a shortcut "keyword" syntax on the command line, which
> works anywhere a commit ID is expected and allows for syntax like:
> 
>   got cherrypick main:-5
> 
> This doesn't help in all cases but can be convenient occasionally.
> 
> If that isn't enough then the least objectionable design choice from my
> point of view would be a shortcut in tog which performs a cherrypick of
> the currently highlighted commit into the work tree.