Multiples improvements
This commit is contained in:
@@ -7,8 +7,8 @@ _git () {
|
||||
_MODIFIED="$(grep -o "M" <<< "$(git status --short)" | grep -c .)"
|
||||
_UNTRACKED="$(grep -o "??" <<< "$(git status --short)" | grep -c .)"
|
||||
_ORIGIN="$(git remote show)"
|
||||
_AHEAD=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" | cut -f 1)
|
||||
_BEHIND=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" | cut -f 2)
|
||||
_AHEAD=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" 2> /dev/null | cut -f 1)
|
||||
_BEHIND=$(git rev-list --left-right --count "$_BRANCH"..."$_ORIGIN"/"$_BRANCH" 2> /dev/null | cut -f 2)
|
||||
printf " %s " "$(git branch --show-current)"
|
||||
if (( _MODIFIED == 0 )) && (( _UNTRACKED == 0 )) && (( _AHEAD == 0 )) && (( _BEHIND == 0 ))
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user