From: Rubén Justo Date: Mon, 12 Sep 2022 21:18:29 GMT Subject: Re: [PATCH v4] branch: allow "-" as a shortcut for "previous branch" Message-ID: <74f12788-154a-d5f3-bb81-a00e7492e99f@gmail.com> In-Reply-To: Junio C Hamano wrote: > I am sorry that this is now at v4, but let's not do this. Fair enough. > Thanks. I think your other "git branch -d @{-1}" thing is sound, > though. Just to be sure. I'm assuming you're referring to the patch for the other branch options: "-edit-description", "-set-upstream-to" and "-unset-upstream". Routing their arguments through strbuf_branchname to allow the expansion of @{-N}, @{u}... Option "-d" is fine with this. Otherwise please let me know. Rubén.