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

From:
Omar Polo <op@omarpolo.com>
Subject:
Re: make got fetch default to work tree's current branch
To:
Mark Jamsek <mark@jamsek.com>
Cc:
Game of Trees <gameoftrees@openbsd.org>
Date:
Wed, 01 Feb 2023 17:48:20 +0100

Download raw body.

Thread
On 2023/02/02 00:53:45 +1100, Mark Jamsek <mark@jamsek.com> wrote:
> I thought I'd check the recent todo updates before zzz and noticed
> stsp's new 'got fetch' item. I'm not entirely sure, but it seems to be
> as simple as this: if in a work tree and -b is not specified, make the
> work tree's current branch the wanted branch.

I like the behavior too!  ok op

> A potential downside to this behaviour is that, if in a branch that is
> not on the remote, fetch will now fail where previously it would
> succeed.

not sure it's a big deal, at least send operates on the current branch
by default as Stefan also noted, so this brings more coherence too :)


Thanks!