Re: Feature Request: add a --current option to git branch

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

 



On Wed, Feb 23, 2011 at 2:08 PM, John Jendro <tacliat@xxxxxxxxx> wrote:
> Yes I know this can be done with sed & grep, but --current should be a
> standard thing for git branch to have.

I sense you're looking to get the name of the currently checked out
branch, possibly for use in a script. In that case, you may want "git
rev-parse --abbrev-ref HEAD" or "git rev-parse --symbolic-full-name
HEAD" depending upon what you're trying to do.

j.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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]