MCPcopy Create free account
hub / github.com/modelscope/modelscope / commit

Method commit

modelscope/hub/git.py:162–164  ·  view source on GitHub ↗
(self, repo_dir: str, message: str)

Source from the content-addressed store, hash-verified

160 return self._run_git_command('-C', repo_dir, 'add', *(files or []))
161
162 def commit(self, repo_dir: str, message: str):
163 return self._run_git_command('-C', repo_dir, 'commit', '-m',
164 f"'{message}'")
165
166 def checkout(self, repo_dir: str, revision: str):
167 return self._run_git_command('-C', repo_dir, 'checkout', revision)

Callers 2

pushMethod · 0.80
pushMethod · 0.80

Calls 1

_run_git_commandMethod · 0.95

Tested by

no test coverage detected