mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
show new commits in submodules
This commit is contained in:
parent
0d271a1541
commit
b39770cc89
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,10 @@ function git_remotes() {
|
|||
fi
|
||||
done
|
||||
pushed=$(git log --oneline origin/master..HEAD | wc -l )
|
||||
[ "$pushed" -gt "0" ] && remotes+="↑:"$pushed
|
||||
[ "$pushed" -gt "0" ] && remotes+=" ↑:"$pushed
|
||||
# submodules commints
|
||||
submod=$(git status | grep "new commits" | wc -l)
|
||||
[ "$submod" -gt "0" ] && remotes+=" _:"$submod
|
||||
fi
|
||||
fi
|
||||
echo $remotes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue