Called when the `Analyzer` has reached a new commit. params hexsha hex SHA of the commit. seeking_mode describes how this commit has been reached. See CommitSeekingMode for more details on the meaning of each value.
(self, hexsha: str, seeking_mode: CommitSeekingMode, author_name: str,
author_email: str, commit_message: str)
| 148 | pass |
| 149 | |
| 150 | def start_commit(self, hexsha: str, seeking_mode: CommitSeekingMode, author_name: str, |
| 151 | author_email: str, commit_message: str): |
| 152 | """ |
| 153 | Called when the `Analyzer` has reached a new commit. |
| 154 | params |
| 155 | hexsha hex SHA of the commit. |
| 156 | seeking_mode describes how this commit has been reached. |
| 157 | See CommitSeekingMode for more details on the meaning of each value. |
| 158 | commit_message commit summary. |
| 159 | |
| 160 | remarks |
| 161 | When implementing this method, you might want to preserve `seeking_mode` as a class field |
| 162 | so you may have access to this value in `update_graph` & `end_commit` implementations. |
| 163 | """ |
| 164 | # default implementation for backwards compatibility |
| 165 | if seeking_mode == CommitSeekingMode.NormalForward: |
| 166 | self.register_commit(hexsha, author_name, author_email, commit_message) |
| 167 | |
| 168 | def end_commit(self, hexsha: str): |
| 169 | """ |
no test coverage detected