Commit 7c969074 authored by Pablo Toharia's avatar Pablo Toharia

Added rev to git-status.sh script.

parent e92f241d
......@@ -10,7 +10,7 @@ git_subproject(fires git@gitlab.gmrv.es:retrieval/fires.git master)
git_subproject(nsol git@gitlab.gmrv.es:nsviz/nsol.git master)
git_subproject(nore git@gitlab.gmrv.es:nsviz/nore.git master)
git_subproject(neuroscheme git@gitlab.gmrv.es:nsviz/neuroscheme.git master)
git_subproject(prefr git@gitlab.gmrv.es:nsviz/prefr.git master)
# git_subproject(prefr git@gitlab.gmrv.es:nsviz/prefr.git master)
git_subproject(neurolots git@gitlab.gmrv.es:nsviz/neurolots.git master )
git_subproject(spineret git@gitlab.gmrv.es:retrieval/spineret.git master )
git_subproject(strip git@gitlab.gmrv.es:gmrv/strip.git master )
# git_subproject(strip git@gitlab.gmrv.es:gmrv/strip.git master )
......@@ -21,11 +21,12 @@ for dir in `ls -d *`; do
if [ -d $dir/.git ]; then
cd $dir
status=`git status --porcelain`
rev=`git rev-parse --short HEAD`
branch=`git branch | grep ^\* | cut -d "*" -f2`
if [ -z "$status" ]; then
echo -e " \033[32m--" $dir "["$branch" ]" "\e[0m"
echo -e " \033[32m--" $dir "["$branch" ]" "("$rev")" "\e[0m"
else
echo -e " \033[31m--" $dir "["$branch" ]" "\e[0m"
echo -e " \033[31m--" $dir "["$branch" ]" "("$rev")" "\e[0m"
git status --porcelain
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment