Files
dvc/dvc/repo/commit.py
T
2019-02-16 21:19:36 +02:00

12 lines
370 B
Python

def commit(self, target, with_deps=False, recursive=False, force=False):
if target and not recursive:
stages = self.collect(target, with_deps=with_deps)
else:
stages = self.active_stages(target)
with self.state:
for stage in stages:
stage.check_can_commit(force=force)
stage.commit()
stage.dump()