(self, output_paths, msg, force=False)
| 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") |