MCPcopy Create free account
hub / github.com/GCWing/BitFun / git_cherry_pick_abort

Function git_cherry_pick_abort

src/apps/desktop/src/api/git_api.rs:1194–1218  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    request: GitRepositoryRequest,
)

Source from the content-addressed store, hash-verified

1192
1193#[tauri::command]
1194pub 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]
1221pub async fn git_cherry_pick_continue(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected