diff options
author | Robby Russell <robby@planetargon.com> | 2010-06-03 12:56:11 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-06-03 12:56:11 -0700 |
commit | 27904c117c3ee70938edbac45cee7a44ced5c38b (patch) | |
tree | e47bb3a3ce9b4c6cf74df90eae8f8763a2396ddf /lib/git.zsh | |
parent | 89bd2bf317fe458c6a6154824823670dd2d32660 (diff) | |
download | zsh-27904c117c3ee70938edbac45cee7a44ced5c38b.tar.gz zsh-27904c117c3ee70938edbac45cee7a44ced5c38b.tar.bz2 zsh-27904c117c3ee70938edbac45cee7a44ced5c38b.zip |
Moving current_branch() to git plugin
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index a54e5bcbb..889dd98df 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -11,12 +11,3 @@ parse_git_dirty () { echo "$ZSH_THEME_GIT_PROMPT_CLEAN" fi } - -# -# Will return the current branch name -# Usage example: git pull origin $(current_branch) -# -function current_branch() { - ref=$(git symbolic-ref HEAD 2> /dev/null) || return - echo ${ref#refs/heads/} -} |