(stage, changes, force=False)
| 34 | |
| 35 | |
| 36 | def prompt_to_commit(stage, changes, force=False): |
| 37 | from dvc.stage.exceptions import StageCommitError |
| 38 | |
| 39 | if not (force or prompt.confirm(_prepare_message(stage, changes))): |
| 40 | raise StageCommitError( |
| 41 | f"unable to commit changed {stage}. Use `-f|--force` to force." |
| 42 | ) |
| 43 | |
| 44 | |
| 45 | @locked |
no test coverage detected