tmp_result look useless, can't you write:

```python
commit = re.findall(commit_id_pattern, line)[0]
commits.append(commit)
results[commit] = OrderedDict()
```

?