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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: regress: (cd && git) -> git -C ?
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 1 Oct 2023 09:09:06 +0200

Download raw body.

Thread
On Sun, Oct 01, 2023 at 01:29:26AM +0200, Christian Weisgerber wrote:
> There are a few hundred instances of "(cd path && git cmd)" in
> the regression suite.  Would it make sense to replace those with
> "git -C path cmd"?  Needless churn?
> 
> (The -C option was introduced in git 1.8.5, almost ten years ago.)

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

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