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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: got add recursive
To:
Tracey Emery <tracey@traceyemery.net>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 14 Nov 2019 09:24:33 +0100

Download raw body.

Thread
On Wed, Nov 13, 2019 at 04:52:52PM -0700, Tracey Emery wrote:
> Quick question, is anyone working on making got add recursive, so that
> `got add .` will add all files? Or, is that not part of the plan?
> 
> Thanks.

It is one of the items in the TODO file:

- recursive addition: got add -R

I am not aware of anyone already working on this.

Like revert, the add command should remain non-recursive by default and only
recurse into directories specified on the command line if -R is supplied.
I believe there will be fewer surprises if we keep this rule relatively
consistent across commands that directly manipulate the status of files
in the work tree. See cmd_revert() in got.c for how this can be implemented.