File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Django Git Data Dashboard
2
+ Imports, analyzes and visualizes all of your Git history in a
3
+ convenient Django-based web application data dashboard.
4
+
Original file line number Diff line number Diff line change 1
1
import os
2
2
from git import Repo
3
+ from analyzer .models import GitRepository , GitCommit
3
4
4
5
5
- def parse_commit (commit ):
6
+ def print_commit (commit ):
6
7
print ("\" {}\" by {}" .format (commit .summary , commit .author .name ))
7
8
print (str (commit .authored_datetime ))
8
9
print (str (commit .size ))
9
10
10
11
12
+ def create_commit (commit ):
13
+ gc = GitCommit ()
14
+ return gc
15
+
16
+
11
17
if __name__ == "__main__" :
12
18
repo_path = os .getenv ('GIT_REPO_PATH' )
13
19
@@ -18,10 +24,10 @@ def parse_commit(commit):
18
24
19
25
# check out last commit
20
26
last_commit = repo .head .commit
21
- parse_commit (last_commit )
27
+ print_commit (last_commit )
22
28
23
29
# go through all commits
24
30
commits = list (repo .iter_commits ('master' ))
25
31
for commit in commits :
26
- parse_commit (commit )
32
+ print_commit (commit )
27
33
You can’t perform that action at this time.
0 commit comments