more updates again
This commit is contained in:
parent
7ad495bd05
commit
8ce549de21
@ -2,9 +2,14 @@
|
|||||||
|
|
||||||
if git status &>/dev/null; then
|
if git status &>/dev/null; then
|
||||||
branch=$(git branch --show-current)
|
branch=$(git branch --show-current)
|
||||||
|
|
||||||
|
read -ra counts <<< $(git rev-list --left-right --count $branch...origin/$branch)
|
||||||
|
to_push=${counts[0]}
|
||||||
|
to_pull=${counts[1]}
|
||||||
|
|
||||||
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
|
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
|
||||||
echo "($branch*)"
|
echo "($branch* $to_push↑ $to_pull↓)"
|
||||||
else
|
else
|
||||||
echo "($branch~)"
|
echo "($branch~ $to_push↑ $to_pull↓)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user