Re: git branch --current?
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 17, 2010, 15:14 UTC
- Message-ID
- <76718491003170814v71e31e91q994daee849da4caf@mail.gmail.com>
- In-Reply-To
- <fcaeb9bf1003170804s4c9fdbb6id2c045bdb90f8c6f@mail.gmail.com>
On Wed, Mar 17, 2010 at 11:04 AM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> Hmm.. I have alias.pwb = symbolic-ref HEAD. Both solutions are not as > good as "git branch", say detached HEAD case.
How about naming something like this git-pwb and copying it to somewhere in PATH:
#!/bin/sh . /opt/git/share/git-core/git-completion.bash echo $(__git_ps1)
Perhaps you are inspired to contribute git-completion.csh?
:-)
j.