Skip to content

Commit b3a61bf

Browse files
author
Louis1992
committed
add demo
1 parent 85cca70 commit b3a61bf

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# gitstats
2-
Create visual stats for you repo.
2+
Create visual stats for you repo. Following is the result of my [CLRS](https://github.com/gzc/CLRS) repo
3+
4+
![demo](./demo.gif)
35

46
***
57

@@ -10,9 +12,15 @@ pip install yattag
1012
```
1113

1214
## Usage
15+
Generate your repo log
16+
```
17+
git log --stat --no-merges --summary > repo_log
18+
```
19+
20+
Run script with the generated log
1321
```
14-
git log --stat --no-merges --summary > tmp
15-
python main.py tmp
22+
cd gitstats/v1
23+
python main.py projectName repo_log
1624
```
1725

1826
***

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
06/10/2017
33
1. Basic info per user, like commit numbers and lines of changes.
44
2. Provide Lines of Code vs. time image.
5+
6+
## V 1.0.0-alpha
7+
07/01/2017
8+
1. Using template html
9+
2. Support file by extension

demo.gif

865 KB
Loading

v1/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import Util
1616

1717
def main():
18-
logname = sys.argv[1]
19-
projectName = 'BBG'
18+
projectName = sys.argv[1]
19+
logname = sys.argv[2]
2020
fields = ['author', 'commit_number', 'lines_added', 'lines_deleted']
2121
commits, fileExtensionMap = DataCollector.fire(logname)
2222

0 commit comments

Comments
 (0)