aboutsummaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-27 03:41:28 -0500
committerJunio C Hamano <junkio@cox.net>2006-11-27 12:09:16 -0800
commitd3d717a4ad0c8d7329e79f7d0313baec57c6b585 (patch)
tree03b3419fea3d87dd91229d24b0dac1a7e8c08eec /wt-status.h
parentd33909bf6e78e6ab8a45bfdd19bc19213fde5501 (diff)
downloadgit-d3d717a4ad0c8d7329e79f7d0313baec57c6b585.tar.gz
git-d3d717a4ad0c8d7329e79f7d0313baec57c6b585.tar.xz
Add current branch in PS1 support to git-completion.bash.
Many users want to display the current branch name of the current git repository as part of their PS1 prompt, much as their PS1 prompt might also display the current working directory name. We don't force our own PS1 onto the user. Instead we let them craft their own PS1 string and offer them the function __git_ps1 which they can invoke to obtain either "" (when not in a git repository) or "(%s)" where %s is the name of the current branch, as read from HEAD, with the leading refs/heads/ removed. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'wt-status.h')
0 files changed, 0 insertions, 0 deletions