Skip to content

Commit 24fa268

Browse files
committed
Monthly summary of commits in ezk.git extras menu
1 parent 82aa88b commit 24fa268

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

EasyKey.git/ezk-git-extras.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ function obliterate () {
4242

4343
}
4444

45+
monthlySummary() {
46+
git log --oneline --format='%C(auto)%ad %h %d' --date=format:'%Y-%m-%d' | awk '{print substr($1, 1, 7)}' | sort | uniq -c | awk '{print $2, $1}'
47+
}
48+
4549
menuInit "Git extras menu"
4650
submenuHead "Project information"
4751
menuItem a "Project summary in commits" "git summary"
@@ -52,6 +56,7 @@ menuItem e "Show information about the repo" "git info"
5256
menuItem f "Generate changelog" "git changelog -a"
5357
menuItem g "Show tree" "git show-tree"
5458
menuItem h "Show activity calendar" "git cal"
59+
menuItem i "Monthly count of commits" monthlySummary
5560
submenuHead "Author information"
5661
menuItem k "List authors" "git authors --list"
5762
menuItem l "Find out what somebody did since ..." findOut

0 commit comments

Comments
 (0)