MCPcopy
hub / github.com/avinassh/rockstar / _make_last_commit

Method _make_last_commit

rockstar/RockStar.py:52–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 return choice(self.commit_messages)
51
52 def _make_last_commit(self):
53 with open(self.file_path, 'w') as f:
54 f.write(self.code)
55
56 os.environ['GIT_AUTHOR_DATE'] = ''
57 os.environ['GIT_COMMITTER_DATE'] = ''
58 self.repo.index.add([self.file_path])
59 self.repo.index.commit('Final commit :sunglasses:')
60
61 def _edit_and_commit(self, message, commit_date):
62 with open(self.file_path, 'w') as f:

Callers 1

make_me_a_rockstarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected