(
state: State<'_, AppState>,
request: GitRepositoryRequest,
)
| 1219 | |
| 1220 | #[tauri::command] |
| 1221 | pub async fn git_cherry_pick_continue( |
| 1222 | state: State<'_, AppState>, |
| 1223 | request: GitRepositoryRequest, |
| 1224 | ) -> Result<GitOperationResult, String> { |
| 1225 | info!( |
| 1226 | "Continuing cherry-pick in repo '{}'", |
| 1227 | request.repository_path |
| 1228 | ); |
| 1229 | |
| 1230 | if let Some(target) = resolve_remote_git_target(&request.repository_path).await { |
| 1231 | return execute_remote_git_operation( |
| 1232 | &state, |
| 1233 | &target, |
| 1234 | &["cherry-pick".to_string(), "--continue".to_string()], |
| 1235 | ) |
| 1236 | .await; |
| 1237 | } |
| 1238 | |
| 1239 | GitService::cherry_pick_continue(&request.repository_path) |
| 1240 | .await |
| 1241 | .map_err(|e| { |
| 1242 | error!( |
| 1243 | "Failed to continue cherry-pick: path={}, error={}", |
| 1244 | request.repository_path, e |
| 1245 | ); |
| 1246 | format!("Failed to continue cherry-pick: {}", e) |
| 1247 | }) |
| 1248 | } |
| 1249 | |
| 1250 | #[tauri::command] |
| 1251 | pub async fn git_list_worktrees( |
nothing calls this directly
no test coverage detected