Skip to content

Commit

Permalink
Slight cleanup of masstimecard
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Jan 17, 2009
1 parent f5af57e commit 5020b83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions git-masstimecard
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@ if __name__ == '__main__':
th = gitaggregates.TimeHisto()
# Separate log args from repo args
repos = []
log_args = None
log_args = []
current = repos
for a in sys.argv[1:]:
if log_args is not None:
if log_args is current:
log_args.append(a)
else:
if a == '--':
log_args = []
current = log_args
else:
p = resolve(a)
if p:
repos.append(p)

if not log_args:
log_args = ['HEAD']
th = gitaggregates.TimeHisto()
for r in repos:
th.add_logs(r, log_args)
Expand Down

0 comments on commit 5020b83

Please sign in to comment.