2016-07-21 13:48:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
[ -e ~/.bashcolors ] && . ~/.bashcolors
|
|
|
|
|
|
|
|
startpath=$(pwd)
|
|
|
|
|
2018-03-10 11:47:55 +00:00
|
|
|
for repo in $(find . -name ".git"); do
|
|
|
|
repodir=$(dirname $repo)
|
|
|
|
reponame=$(basename $repodir)
|
|
|
|
cd $repodir
|
|
|
|
LANG=C git status | grep -q "nothing to commit"
|
|
|
|
state=$?
|
|
|
|
cd $startpath
|
|
|
|
echo -n "$reponame: "
|
|
|
|
[ $state -eq 0 ] && echo -e "${PR_GREEN}Up-2-date${PR_NC}" || echo -e "${PR_BR_RED}Changes available${PR_NC}"
|
2016-07-21 13:48:49 +00:00
|
|
|
done
|