From: Thomas Adam Subject: Re: got export? checkout -X? To: Christian Weisgerber Cc: gameoftrees@openbsd.org Date: Sat, 25 Sep 2021 23:34:35 +0100 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