1GIT-EFFORT(1) Git Extras GIT-EFFORT(1)
2
3
4
6 git-effort - Show effort statistics on file(s)
7
9 git-effort [--above <value>] [<path>...] [-- [<log options>...]]
10
12 Shows effort statistics about files in the repository.
13
14 Display includes:
15 - Commits: number of commits per file - highlighting files with most
16 activity.
17 - Active days: total number of days which contributed modifications to
18 this file.
19
21 --above <value>
22
23 Ignore files with commits <= a value.
24
25 <path>...
26
27 Only count commits that touches the given paths.
28
29 Note: git-effort does not accept revision ranges, but the underlying
30 git log does (See the examples).
31
32 <log options>...
33
34 Options for git log. Note that you must use -- to separate options to
35 git log from options to git effort. This makes it possible to only
36 count commits you are interested in. Not all options are relevant in
37 the context of git-effort, but those that are is listed under the "Com‐
38 mit Limiting" section on the git-log manpages.
39
41 Note: Output will first appear unsorted, then the screen is cleared and
42 the sorted list is output. The initial unsorted list is not shown in
43 the examples for brevity.
44
45 Displays "effort" statistics:
46
47
48
49 $ git effort --above 5
50
51 file commits active days
52
53 git-extras 26 18
54 git-release 13 13
55 git-effort 13 2
56 git-ignore 11 7
57 git-changelog 11 8
58 git-graft 9 6
59 git-summary 8 6
60 git-delete-branch 8 6
61 git-repl 7 5
62
63
64 $ git effort --above 5 bin/* -- --after="one year ago" --author="Leila Muhtasib"
65
66 file commits active days
67
68 git-extras 15 12
69 git-release 6 4
70 git-effort 6 2
71 git-ignore 4 4
72 git-changelog 3 2
73 git-graft 2 2
74
75
76
77 Showing statistics on directories is also possible:
78
79
80
81 $ git effort bin man -- --after="one year ago"
82
83 file commits active days
84
85 bin.......................................... 406 232
86 man.......................................... 118 80
87
88
89
90 Only count commits in the specified revision range:
91
92 $ git effort -- master..feature
93
94
95
96 file commits active days
97
98 bin/git-effort............................... 3 2
99 man/git-effort.md............................ 1 1
100
101
102
104 Written by Leila Muhtasib <muhtasib@gmail.com>
105
107 <https://github.com/tj/git-extras/issues>
108
110 <https://github.com/tj/git-extras>
111
112
113
114 October 2017 GIT-EFFORT(1)