MCPcopy Create free account
hub / github.com/amyasnikov/validity / commit

Method commit

validity/integrations/git.py:83–86  ·  view source on GitHub ↗
(self, local_path: str, username: str, email: str, message: str)

Source from the content-addressed store, hash-verified

81 repo.get_worktree().unstage(filename.decode() for filename in staged_files)
82
83 def commit(self, local_path: str, username: str, email: str, message: str) -> str:
84 author = f"{username} <{email}>".encode()
85 commit_hash = porcelain.commit(repo=local_path, author=author, committer=author, message=message.encode())
86 return commit_hash.decode()
87
88 def push(
89 self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.80
commitMethod · 0.45

Tested by

no test coverage detected