cd YourRepoCodeDir
diff_projects=$(repo diff | grep project)
#echo $diff_projects
cur_dir=$(pwd)
echo $cur_dir
array=(${diff_projects//project/ })
for var in ${array[@]}
do
echo ======================================= $var
echo -e "\033[32m $var \033[0m"
cd $cur_dir
cd $var && git status && cd $cur_dir
done
cd ../
网友评论