Skip to content

Commit 49bdced

Browse files
committed
Add email and committer email and date to commit information output
1 parent bd8cc0b commit 49bdced

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. This change
88
- Contributor rankings based on commit counts
99
- Timeline chart for authored and committed commits
1010
- File change statistics
11+
- Information about comitter/author emails and corresponding date information for commit
12+
- Log output using logback
1113
### Changed
1214
- Rework commit lists, now displayed as table
1315
- Rework contributor list, now displayed as table

src/repo_analyzer/render.clj

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,32 @@
5757
(spit filename site-html))
5858
)
5959

60-
(defn create-commit-list-html
60+
(deftrace create-commit-list-html
6161
"Creates HTML for a list of commits"
6262
[list-of-commits]
6363
(html
6464
[:table {:class "table table-striped"}
6565
[:thead
6666
[:tr
6767
[:th {:scope "col"} "Message"]
68-
[:th {:scope "col"} "Author"]
69-
[:th {:scope "col"} "Committer"]
68+
[:th {:scope "col"} "Author Name"]
69+
[:th {:scope "col"} "Author Email"]
70+
[:th {:scope "col"} "Authored at"]
71+
[:th {:scope "col"} "Committer Name"]
72+
[:th {:scope "col"} "Committer Email"]
73+
[:th {:scope "col"} "Committed at"]
7074
]
7175
]
7276
[:tbody
7377
(map #(vector
7478
:tr
7579
[:td (:msg %)]
7680
[:td (get-in % [:author :name])]
81+
[:td (get-in % [:author :email])]
82+
[:td (get-in % [:author :date])]
7783
[:td (get-in % [:committer :name])]
84+
[:td (get-in % [:committer :email])]
85+
[:td (get-in % [:committer :date])]
7886

7987
) list-of-commits)
8088
]

0 commit comments

Comments
 (0)