Skip to content

pr-1315/rjusto/master-v2

From: rjusto <rjusto@gmail.com>

Align "branch -d" with the intuitive use of "-" as a short-hand
for "@{-1}", like in "checkout", "rebase" and "merge" commands.

$ git branch -d -      # short-hand for: "git branch -d @{-1}"
$ git branch -D -      # short-hand for: "git branch -D @{-1}"

So I can do:

$ git checkout work_to_review
$ git checkout -
$ git merge - # or git rebase -
$ git branch -d -

Signed-off-by: rjusto <rjusto@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.1315.v2.git.1660669912043.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1315.git.1659910949556.gitgitgadget@gmail.com
Assets 2