Commit 8db83b46b9b3b5701f880ab00fe8f893f6be5d2a

Timecard takes arbitrary log args now.

gThis both simplifies the code and provides way more functionality.
  
1717
1818class TimeHisto(object):
1919
20 def __init__(self, ref='HEAD'):
20 def __init__(self, log_args=['HEAD']):
2121 self.h = defaultdict(lambda: 0)
22 args = ['git', 'log', '--pretty=format:%at', ref]
22 args = ['git', 'log', '--pretty=format:%at'] + log_args
2323 sub = subprocess.Popen(args, stdout=subprocess.PIPE, close_fds=True)
2424
2525 for l in sub.stdout:
5757
5858
5959if __name__ == '__main__':
60 ref = 'HEAD'
61 if len(sys.argv) > 1:
62 ref = sys.argv[1]
63
64 th = TimeHisto(ref)
60 th = TimeHisto(sys.argv[1:])
6561 subprocess.check_call(["open", th.to_gchart()])