Commit 00aed74a authored by Vitaly Lipatov's avatar Vitaly Lipatov

check_git_activity: small rewrite

parent 5661c667
#!/bin/bash #!/bin/bash
if [ $1 = '-h' -o $1 = '--help' ] TOPDIR=/azbyka
if [ "$1" = '-h' ] || [ "$1" = '--help' ]
then then
echo "Use 'check_git_actvity.sh 1000' to see the git's who have at least 1000 changes. Without arguments it lists all git's with their amounts of changed/delited/created files." echo "Use 'check_git_activity.sh 1000' to see the git's who have at least 1000 changes. Without arguments it lists all git's with their amounts of changed/delited/created files."
exit 0 exit 0
fi fi
cd /azbyka cd $TOPDIR || exit
LIST=$(find ./azbyka_* -maxdepth 6 -name '.git') LIST=$(find ./azbyka_* -maxdepth 6 -name '.git')
#LIST=$(echo $TOPDIR/azbyka_*/www/*/*/.git)
T=0 T="$1"
[ $1 -gt 0 ] && T=$1
for i in $LIST for i in $LIST
do do
cd /azbyka/$i cd /azbyka/$i/..
cd ..
FILES="$(git status --porcelain)" FILES="$(git status --porcelain)"
M=$(echo "$FILES"|grep -c ' M ') M=$(echo "$FILES"|grep -c ' M ')
D=$(echo "$FILES"|grep -c ' D ') D=$(echo "$FILES"|grep -c ' D ')
......
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