mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-25 07:18:30 +01:00
8 lines
299 B
Python
8 lines
299 B
Python
def commit(self, target, with_deps=False, recursive=False, force=False):
|
|
stages = self.collect(target, with_deps=with_deps, recursive=recursive)
|
|
with self.state:
|
|
for stage in stages:
|
|
stage.check_can_commit(force=force)
|
|
stage.commit()
|
|
stage.dump()
|