refactor(branch-picker): fix popover corner radius, remove local branch delete, move new-branch to top

This commit is contained in:
xintaofei
2026-04-21 23:14:57 +08:00
parent 67c837901d
commit 08fb508736
17 changed files with 40 additions and 183 deletions

View File

@@ -450,22 +450,6 @@ pub async fn git_rebase(
Ok(Json(result))
}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GitDeleteBranchParams {
pub path: String,
pub branch_name: String,
pub force: bool,
}
pub async fn git_delete_branch(
Json(params): Json<GitDeleteBranchParams>,
) -> Result<Json<()>, AppCommandError> {
folder_commands::git_delete_branch(params.path, params.branch_name, params.force)
.await?;
Ok(Json(()))
}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GitDeleteRemoteBranchParams {