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

Method add_commit

persper/analytics/call_commit_graph.py:66–75  ·  view source on GitHub ↗
(self, hexsha, author_name, author_email, message)

Source from the content-addressed store, hash-verified

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):

Callers 3

test_call_commit_graphFunction · 0.95
register_commitMethod · 0.80
start_commitMethod · 0.80

Calls 1

_next_cindexMethod · 0.95

Tested by 1

test_call_commit_graphFunction · 0.76