mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
Merge 43e6488025 into a8ef111a79
This commit is contained in:
commit
24701e026c
1 changed files with 0 additions and 1 deletions
|
|
@ -125,7 +125,6 @@ alias gsd='git svn dcommit'
|
||||||
# Usage example: git pull origin $(current_branch)
|
# Usage example: git pull origin $(current_branch)
|
||||||
#
|
#
|
||||||
function current_branch() {
|
function current_branch() {
|
||||||
if [ ! -d .git ]; then return; fi
|
|
||||||
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
|
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
|
||||||
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
|
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
|
||||||
echo ${ref#refs/heads/}
|
echo ${ref#refs/heads/}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue