Files
dvc/dvc/repo/commit.py
T
2019-03-29 12:43:19 +02:00

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()