mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2025-12-21 12:13:52 +01:00
Compare commits
4 Commits
task/commi
...
2.8.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
125eec7136 | ||
|
|
d61c812247 | ||
|
|
261262ab4e | ||
|
|
e968ef62b9 |
@@ -4,7 +4,7 @@ FROM alpine
|
||||
COPY . /app
|
||||
|
||||
# Install required packages & build git-quick-stats
|
||||
RUN apk add --no-cache bash git make ncurses util-linux \
|
||||
RUN apk add --no-cache bash git make ncurses coreutils util-linux \
|
||||
&& cd /app \
|
||||
&& make install \
|
||||
&& rm -rf /app \
|
||||
|
||||
@@ -138,7 +138,7 @@ function commitsCalendarByAuthor() {
|
||||
cmd | getline weekday;
|
||||
close(cmd);
|
||||
# weekday: 1=Mon, ..., 7=Sun
|
||||
count[weekday][mon]++;
|
||||
count[weekday * 12 + mon]++;
|
||||
}
|
||||
END {
|
||||
# Output matrix
|
||||
@@ -151,7 +151,7 @@ function commitsCalendarByAuthor() {
|
||||
else if (d==6) printf "Sat ";
|
||||
else if (d==7) printf "Sun ";
|
||||
for (m=1; m<=12; m++) {
|
||||
c = count[d][m]+0;
|
||||
c = count[d * 12 + m]+0;
|
||||
if (c==0)
|
||||
out="...";
|
||||
else if (c<=9)
|
||||
|
||||
Reference in New Issue
Block a user