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

From:
Thomas Adam <thomas@xteddy.org>
Subject:
Re: got export? checkout -X?
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Sat, 25 Sep 2021 23:34:35 +0100

Download raw body.

Thread
On Sat, Sep 25, 2021 at 11:53:44PM +0200, Christian Weisgerber wrote:

Hello,

>         @cd ${WRKDIR} && got checkout /home/naddy/got.git ${WRKSRC}
>         @cd ${WRKSRC} && got ref -d `got info | \
>             awk '/work tree UUID:/ { print "refs/got/worktree/base-" $$NF }'`
> 
> There is no "got export" command.  Okay, so I can just use checkout.
> But that adds a reference to the repository, and those pile up, and
> pointlessly for throw-away checkouts.  Which is why I have to resort
> to the above to delete them.
> 
> Should there be a "got export" (cf. "svn export")?
> Some sort of "got checkout -X" to get rid of the ref more easily?
> Or is this just too special?

I can see this being useful -- I mean, it's certainly something I'd use.
Unless someone beats me to it, I'm sure I could get a proof-of-concept patch
to the list next week...

Kindly,
Thomas