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

Method _edit_and_commit

rockstar/RockStar.py:61–68  ·  view source on GitHub ↗
(self, message, commit_date)

Source from the content-addressed store, hash-verified

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:
63 f.write(message)
64 self.repo.index.add([self.file_path])
65 date_in_iso = commit_date.strftime("%Y-%m-%d %H:%M:%S")
66 os.environ['GIT_AUTHOR_DATE'] = date_in_iso
67 os.environ['GIT_COMMITTER_DATE'] = date_in_iso
68 self.repo.index.commit(self._get_random_commit_message())
69
70 @staticmethod
71 def _get_random_time():

Callers 1

make_me_a_rockstarMethod · 0.95

Calls 1

Tested by

no test coverage detected