MCPcopy
hub / github.com/GitGuardian/ggshield / create_commit

Method create_commit

tests/repository.py:49–52  ·  view source on GitHub ↗
(self, message: str = "Test commit")

Source from the content-addressed store, hash-verified

47 self.git("push", *args)
48
49 def create_commit(self, message: str = "Test commit") -> str:
50 self._ensure_credentials_are_set()
51 self.git("commit", "--allow-empty", "-m", message)
52 return self.get_top_sha()
53
54 def checkout(self, name: str) -> None:
55 self.git("checkout", name)

Calls 3

gitMethod · 0.95
get_top_shaMethod · 0.95