MCPcopy
hub / github.com/Aider-AI/aider / get_head_commit_sha

Method get_head_commit_sha

aider/repo.py:609–615  ·  view source on GitHub ↗
(self, short=False)

Source from the content-addressed store, hash-verified

607 return None
608
609 def get_head_commit_sha(self, short=False):
610 commit = self.get_head_commit()
611 if not commit:
612 return
613 if short:
614 return commit.hexsha[:7]
615 return commit.hexsha
616
617 def get_head_commit_message(self, default=None):
618 commit = self.get_head_commit()

Callers 5

commitMethod · 0.95
raw_cmd_undoMethod · 0.80
raw_cmd_diffMethod · 0.80
init_before_messageMethod · 0.80
show_undo_hintMethod · 0.80

Calls 1

get_head_commitMethod · 0.95

Tested by

no test coverage detected