repo.or.cz
/
git-dm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow multiple spaces within an email address
[git-dm.git]
/
grabdates
blob
31557924e435e73e1a5d424d3fe7a456c73302ca
1
#!/usr/bin/pypy
2
# -*- python -*-
3
#
4
# git log | grep '^Date:' | grabdates
5
#
6
import sys
7
from utils import accumulator
8
9
tzs = accumulator()
10
11
for line in sys.stdin.readlines():
12
split = line.split()
13
if split[0] != 'Date:':
14
print 'Funky line: ', line
15
sys.exit(1)
16
zone = int(split[-1])
17
tzs.incr(zone)
18
19
zones = tzs.keys()
20
zones.sort()
21
for zone in zones:
22
print '%05d %d' % (zone, tzs[zone])