(self, hexsha, author_name, author_email, message)
| 64 | return node in self._digraph |
| 65 | |
| 66 | def add_commit(self, hexsha, author_name, author_email, message): |
| 67 | # TODO: remove `id` in a commit object |
| 68 | self._current_commit_id = self._commit_id_generator(self._next_cindex(), hexsha, message) |
| 69 | self._digraph.graph['commits'][hexsha] = { |
| 70 | 'id': self._current_commit_id, |
| 71 | 'hexsha': hexsha, |
| 72 | 'authorName': author_name, |
| 73 | 'authorEmail': author_email, |
| 74 | 'message': message |
| 75 | } |
| 76 | |
| 77 | # The index of the commit being analyzed |
| 78 | def _cur_cindex(self): |