Re: [PATCH] branch: add '-' to delete previous branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ivan Tham <pickfire@xxxxxxxxxx> writes:

> Add support to delete previous branch from git checkout/switch to have
> feature parity with git switch -.

Maybe I'm late on this, but to me, who leaves in the Linux world,
"a_command -" strongly suggests a_command will read further input
from stdin.

[...]

> +To delete the previous branch::
> ++
> +------------
> +$ git branch -D -

... so this suggests that the command, when used like this:

$ echo "branch_name" | git branch -D -

will delete "branch_name" rather than some "previous" branch, whatever
that means.

Is this short-cut /that/ important to create yet another confusion?

-- Sergey



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux