(
state: State<'_, AppState>,
request: GitRepositoryRequest,
)
| 1192 | |
| 1193 | #[tauri::command] |
| 1194 | pub async fn git_cherry_pick_abort( |
| 1195 | state: State<'_, AppState>, |
| 1196 | request: GitRepositoryRequest, |
| 1197 | ) -> Result<GitOperationResult, String> { |
| 1198 | info!("Aborting cherry-pick in repo '{}'", request.repository_path); |
| 1199 | |
| 1200 | if let Some(target) = resolve_remote_git_target(&request.repository_path).await { |
| 1201 | return execute_remote_git_operation( |
| 1202 | &state, |
| 1203 | &target, |
| 1204 | &["cherry-pick".to_string(), "--abort".to_string()], |
| 1205 | ) |
| 1206 | .await; |
| 1207 | } |
| 1208 | |
| 1209 | GitService::cherry_pick_abort(&request.repository_path) |
| 1210 | .await |
| 1211 | .map_err(|e| { |
| 1212 | error!( |
| 1213 | "Failed to abort cherry-pick: path={}, error={}", |
| 1214 | request.repository_path, e |
| 1215 | ); |
| 1216 | format!("Failed to abort cherry-pick: {}", e) |
| 1217 | }) |
| 1218 | } |
| 1219 | |
| 1220 | #[tauri::command] |
| 1221 | pub async fn git_cherry_pick_continue( |
nothing calls this directly
no test coverage detected