MCPcopy
hub / github.com/treeverse/dvc / commit

Method commit

dvc/testing/tmp_dir.py:154–163  ·  view source on GitHub ↗
(self, output_paths, msg, force=False)

Source from the content-addressed store, hash-verified

152 return self.scm_add(paths, commit=commit, force=force)
153
154 def commit(self, output_paths, msg, force=False):
155 def to_gitignore(stage_path):
156 from dvc.scm import Git
157
158 return os.path.join(os.path.dirname(stage_path), Git.GITIGNORE)
159
160 gitignores = [
161 to_gitignore(s) for s in output_paths if os.path.exists(to_gitignore(s))
162 ]
163 return self.scm_add(output_paths + gitignores, commit=msg, force=force)
164
165 def dvc_add(self, filenames, commit=None):
166 self._require("dvc")

Callers 6

dvc_addMethod · 0.95
initMethod · 0.45
scm_addMethod · 0.45
add_remoteMethod · 0.45
_make_datasetFunction · 0.45

Calls 2

scm_addMethod · 0.95
existsMethod · 0.45

Tested by 1