You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,31 +12,43 @@ Solutions that I've found online looked at changes to files irrespective whether
12
12
*Tested with Python version 3.5.3 and Git version 2.20.1*
13
13
14
14
# How it works
15
-
This lightweight script looks at a range of commits per author. For each commit it bookkeeps the files that were changed along with the LOC for each file. LOC are kept in a sparse structure and changes per LOC are taken into account as the program loops. When a change to the same LOC is detected it updates this separately to bookkeep the true code churn.
16
-
Result is a print with aggregated contribution and churn per author for a given time period.
15
+
This lightweight script looks at commits per author for a given date range on the **current branch**. For each commit it bookkeeps the files that were changed along with the LOC for each file. LOC are kept in a sparse structure and changes per LOC are taken into account as the program loops. When a change to the same LOC is detected it updates this separately to bookkeep the true code churn.
16
+
Result is a print with aggregated contribution and churn per author for a given period in time.
17
17
18
18
***Note:*** This includes the `--no-merges` flag as it assumes that merge commits with or without merge conflicts are not indicative of churn.
19
19
20
20
# Usage
21
21
Positional (required) arguments:
22
22
-**after** after a certain date, in YYYY[-MM[-DD]] format
23
23
-**before** before a certain date, in YYYY[-MM[-DD]] format
24
-
-**author** author string (not committer)
24
+
-**author** author string (not a committer), leave blank to scope all authors
25
25
-**dir** include Git repository directory
26
26
27
27
Optional arguments:
28
28
-**-h, --h, --help** show this help message and exit
0 commit comments