Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
35 lines (30 loc) · 774 Bytes

File metadata and controls

executable file
·
35 lines (30 loc) · 774 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /bin/sh
data="$(git log "$@" --pretty=format:%ad --date=format:"%w %H" |
awk '
$1 == 0 { $1 = 7 }
{ h[$1 " " $2]++ }
END {
for (i in h)
if (max < h[i])
max = h[i]
# scale the values into the range [0..7)
max = (max - 1) / 7
for (i in h)
print i " " h[i] / max
}
')"
# echo "$data" >hours.txt
gnuplot <<EOF
unset key
set title "commits per hour and weekday"
set xlabel "Weekday"
set xrange [0:8]
set xtics ("" 0, "Mon" 1, "Tue" 2, "Wed" 3, "Thu" 4, "Fri" 5, "Sat" 6, "Sun" 7)
set ylabel "Hour"
set ytics 6
set terminal pngcairo
set output "hours.png"
plot '-' using 1:2:3 with points pt 6 ps variable lc 'web-blue'
$data
e
EOF
Morty Proxy This is a proxified and sanitized view of the page, visit original site.