MCPcopy Create free account
hub / github.com/Persper/code-analytics / start_commit

Method start_commit

persper/analytics/graph_server.py:150–166  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

_analyzeCommitMethod · 0.45

Calls 1

register_commitMethod · 0.95

Tested by

no test coverage detected