{"record":{"id":"caf363e38b6ba729","repo":"gitbutlerapp/gitbutler","slug":"commit-was-marked-as-not-conflictable-but-resu","errorCode":null,"errorMessage":"Commit {} was marked as not conflictable, but resulted in a conflicted state","messagePattern":"Commit (.+?) was marked as not conflictable, but resulted in a conflicted state","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but-rebase/src/graph_rebase/rebase.rs","lineNumber":71,"sourceCode":"                                    _ => bail!(\"A parent in the output graph is not a pick\"),\n                                }\n                            })\n                            .collect::<Result<Vec<_>>>()?,\n                    };\n\n                    let outcome = cherry_pick(\n                        &self.repo,\n                        pick.id,\n                        &ontos,\n                        pick.pick_mode,\n                        pick.tree_merge_mode,\n                        pick.sign_commit,\n                    )?;\n\n                    if matches!(outcome, CherryPickOutcome::ConflictedCommit(_))\n                        && !pick.conflictable\n                    {\n                        bail!(\n                            \"Commit {} was marked as not conflictable, but resulted in a conflicted state\",\n                            pick.id\n                        );\n                    }\n\n                    match outcome {\n                        CherryPickOutcome::Commit(new_id)\n                        | CherryPickOutcome::ConflictedCommit(new_id)\n                        | CherryPickOutcome::Identity(new_id) => {\n                            let mut new_pick = pick.clone();\n                            new_pick.id = new_id;\n                            let new_idx = output_graph.add_node(Step::Pick(new_pick));\n                            graph_mapping.insert(step_idx, new_idx);\n                            if !pick.exclude_from_tracking {\n                                history.update_mapping(pick.id, new_id);\n                            }\n\n                            new_idx","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but-rebase/src/graph_rebase/rebase.rs#L53-L89","documentation":"Each pick in the rebase plan carries a `conflictable` flag declaring whether it may produce conflicts. After cherry-picking, the outcome was a ConflictedCommit even though the pick was marked non-conflictable. The library refuses to continue because the caller's declaration was violated, preventing silently mishandled conflict state.","triggerScenarios":"Invoking rebase with a step whose Pick.conflictable is false, while the underlying git cherry-pick produces CherryPickOutcome::ConflictedCommit — usually because the commit's content actually conflicts with its new parent.","commonSituations":"Callers marking restore-style or auto-generated commits as non-conflictable when upstream changes make them conflict; stale conflictable flags after branches were rebased or edited externally.","solutions":["Mark the offending commit as conflictable: true so the rebase can surface the conflict properly.","Resolve the conflict upstream: rebase the commit onto its new base manually, then retry the rebase.","Check why the commit was marked non-conflictable (e.g. GitButler UI state) and refresh the workspace state."],"exampleFix":"// before\nPick { id, conflictable: false, .. }\n// after\nPick { id, conflictable: true, .. }","handlingStrategy":"try-catch","validationCode":"// Only mark picks non-conflictable when content provably touches disjoint files\nlet safe = pick_files.iter().all(|f| !upstream_changed.contains(f));","typeGuard":"if let CherryPickOutcome::ConflictedCommit(_) = outcome { /* handle conflict path explicitly */ }","tryCatchPattern":"match rebase_result {\n    Err(e) if e.to_string().contains(\"marked as not conflictable\") => {\n        // retry with conflictable: true for the failing commit\n    }\n    other => other?,\n}","preventionTips":["Default conflictable to true unless you can prove disjoint changes","Refresh conflictable flags after any external branch mutation","Re-derive flags from actual file overlap instead of caching them"],"tags":["rebase","conflict","cherry-pick"],"backgroundTag":"unexpected-response-shape","analyzedSha":"58e5313667b857ef39a730e380af31816a7b1768","analyzedAt":"2026-09-18T06:50:32.052Z","contentChangedAt":"2026-09-18T06:50:32.052Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}