Preview the split and require an explicit acknowledgement before it is dispatched to the service or executed locally.
(&self, repo: &mut Repository, confirm: F)
| 178 | /// Preview the split and require an explicit acknowledgement before it |
| 179 | /// is dispatched to the service or executed locally. |
| 180 | fn confirm_gate<F>(&self, repo: &mut Repository, confirm: F) -> CliResult<()> |
| 181 | where |
| 182 | F: FnOnce(&str) -> CliResult<bool>, |
| 183 | { |
| 184 | let (working_copy, from_view, options) = self.plan(repo)?; |
| 185 | self.preview_and_prompt(repo, working_copy, &from_view, &options, confirm) |
| 186 | } |
| 187 | |
| 188 | fn preview_and_prompt<F>( |
| 189 | &self, |
no test coverage detected