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

Method get_head_commit

aider/repo.py:603–607  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

601 return self.repo.is_dirty(path=path)
602
603 def get_head_commit(self):
604 try:
605 return self.repo.head.commit
606 except (ValueError,) + ANY_GIT_ERROR:
607 return None
608
609 def get_head_commit_sha(self, short=False):
610 commit = self.get_head_commit()

Callers 3

get_head_commit_shaMethod · 0.95
raw_cmd_undoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected