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

From:
Kurt Mosiejczuk <kmos@openbsd.org>
Subject:
Re: add 'got branch' -c option
To:
gameoftrees@openbsd.org, Pavel Korovin <pvk@openbsd.org>
Date:
Sun, 10 Nov 2019 15:15:58 +0200

Download raw body.

Thread
On Sun, Nov 10, 2019 at 01:25:09PM +0200, Stefan Sperling wrote:
> This changes the synopsis of 'got branch' slightly (in a backwards
> incompatble way, but we don't promise a stable UI yet anyway).

> The current way to create a branch based on a specific commit is:

> 	got branch branch_name commit_id

> where "commit_id" can also be specified indirectly via a reference.

> With the patch below, this becomes:

> 	got branch -c commit_id branch_name

> The idea is to avoid confusion about the order of branch name and
> commit id arguments, and to make 'got branch' rely on the commit
> option parsing code already used by other commands.

> Prompted by a discussion with Kurt Mosiejczuk and Pavel Korovin
> over glasses of fine Romanian wine :-)

> ok?

Looks good to me.

--Kurt