Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
5661c667
Commit
5661c667
authored
Oct 20, 2014
by
System Administrator
Committed by
Vitaly Lipatov
Nov 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit check_git_activity.sh
parent
b5fc992b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
check_git_activity.sh
git/check_git_activity.sh
+28
-0
No files found.
git/check_git_activity.sh
0 → 100755
View file @
5661c667
#!/bin/bash
if
[
$1
=
'-h'
-o
$1
=
'--help'
]
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."
exit
0
fi
cd
/azbyka
LIST
=
$(
find ./azbyka_
*
-maxdepth
6
-name
'.git'
)
T
=
0
[
$1
-gt
0
]
&&
T
=
$1
for
i
in
$LIST
do
cd
/azbyka/
$i
cd
..
FILES
=
"
$(
git status
--porcelain
)
"
M
=
$(
echo
"
$FILES
"
|grep
-c
' M '
)
D
=
$(
echo
"
$FILES
"
|grep
-c
' D '
)
Q
=
$(
echo
"
$FILES
"
|grep
-c
'?? '
)
ALL
=
$(
echo
-n
"
$FILES
"
|grep
-c
''
)
if
[
$ALL
-ge
$T
]
then
echo
"
$(
basename
$(
pwd
))
-
$ALL
changes:
$M
modified,
$D
deleted,
$Q
created"
fi
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment