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

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: regress: (cd && git) -> git -C ?
To:
gameoftrees@openbsd.org
Date:
Sun, 1 Oct 2023 16:21:57 +0200

Download raw body.

Thread
Stefan Sperling:

> I don't mind having Git do the chdir itself if you prefer.
> Just curious, is there any benefit other than shell script cosmetics?

Not really.  It saves a subshell, but that is hardly relevant.
The regression suite already uses "got cmd -r" extensively, so the
git equivalent would blend in there.

> Would you also want an option like this for got itself?

No.  -r already covers half of it.  The other half would be an
option to shortcut "(cd worktree && got)", but that's just pointless
feature creep.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de