MCPcopy
hub / github.com/initialcommit-com/git-sim / get_commit

Method get_commit

src/git_sim/git_sim_base_command.py:105–108  ·  view source on GitHub ↗
(self, sha_or_ref="HEAD")

Source from the content-addressed store, hash-verified

103 self.show_outro()
104
105 def get_commit(self, sha_or_ref="HEAD"):
106 if self.head_exists():
107 return self.repo.commit(sha_or_ref)
108 return "dark"
109
110 def get_default_commits(self):
111 defaultCommits = [self.get_commit()]

Callers 15

get_default_commitsMethod · 0.95
parse_commitsMethod · 0.95
parse_allMethod · 0.95
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80
constructMethod · 0.80

Calls 1

head_existsMethod · 0.95

Tested by

no test coverage detected