forked from apis/gitstatistics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
43 lines (26 loc) · 1.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description:
This simple gawk script allows to aggregate results for 'git log --numstat' command. Script
outputs 4 basic statistics grouped by author.
1. Number of line insertions.
2. Number of line deletions.
3. Number of files changed.
4. Number of commits.
Examples:
a) Statistics for all users and all commits in repository.
git log --numstat | gawk -f ~/gitstatistics/stats.awk
b) Statistics for last month of commits, for all users.
git log --numstat --since="1 month ago" | gawk -f ~/gitstatistics/stats.awk
c) Statistics for all commits of user 'apis72'.
git log --numstat --author=apis72 | gawk -f ~/gitstatistics/stats.awk
d) Example of generated output.
Author: Alexey Pisanko <[email protected]>
Insertions: 136
Deletions: 0
Files changed: 1
Commits: 1
Additional Information:
Copyright © 2010, Alexey Pisanko ([email protected]) All rights reserved.
License: GPL 3/LGPL 3
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
either express or implied. See the License for the specific language governing rights and limitations
under the License.