{"record":{"id":"019ae6afff04d1f5","repo":"gitbutlerapp/gitbutler","slug":"the-uncommitted-area-has-been-renamed-from-old-uncommitted","errorCode":null,"errorMessage":"The uncommitted area has been renamed from '{OLD_UNCOMMITTED}' to '{UNCOMMITTED}'. Repeat the command with '{UNCOMMITTED}' instead to proceed.","messagePattern":"The uncommitted area has been renamed from '(.+?)' to '(.+?)'\\. Repeat the command with '(.+?)' instead to proceed\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but/src/id/mod.rs","lineNumber":1394,"sourceCode":"            }\n            matches.push(Box::new(uncommitted_file));\n        }\n        matches\n    }\n\n    fn parse_element_scoped<'a>(\n        &'a self,\n        element: &str,\n        scope: SourceScope,\n    ) -> anyhow::Result<Vec<Box<dyn Node<'a> + 'a>>> {\n        if element.is_empty() {\n            return Ok(vec![]);\n        }\n\n        if element == OLD_UNCOMMITTED {\n            // this should be a bad_input but it's just too much of a hassle to convert the entire\n            // call chain to use CliResult. This is fine for a temporary error message.\n            anyhow::bail!(\n                \"The uncommitted area has been renamed from '{OLD_UNCOMMITTED}' to '{UNCOMMITTED}'. Repeat the command with '{UNCOMMITTED}' instead to proceed.\"\n            )\n        }\n\n        // Parse known suffixes.\n        if let Some(prefix) = element.strip_suffix(\"@{stack}\") {\n            let mut matches = Vec::<Box<dyn Node<'a> + 'a>>::new();\n            for stack_with_id in self.indexed_stacks.borrow_owner().iter() {\n                for segment_with_id in stack_with_id.segments.iter() {\n                    if segment_with_id\n                        .branch_name()\n                        .is_some_and(|branch_name| branch_name.contains_str(prefix))\n                    {\n                        matches.push(Box::new(stack_with_id));\n                        break;\n                    }\n                }\n            }","sourceCodeStart":1376,"sourceCodeEnd":1412,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but/src/id/mod.rs#L1376-L1412","documentation":"The `but` CLI renamed the placeholder for the uncommitted-work area from OLD_UNCOMMITTED (\"wip@\") to UNCOMMITTED (\"uncommitted@\"). When an id/element string using the old name is parsed, this error tells the user to repeat the command with the new name. It is an anyhow::bail because converting the whole call chain to CliResult was deemed too invasive for a temporary migration message.","triggerScenarios":"Calling any command that resolves a file/id element (via id parsing in crates/but/src/id/mod.rs) with the literal old uncommitted-area name (e.g. 'wip@' style references) instead of the new one.","commonSituations":"Scripts, shell aliases, or documentation written before the rename; muscle-memory usage of the old keyword; older tutorials or notes referencing the deprecated name.","solutions":["Replace the old uncommitted-area name with the new one (UNCOMMITTED) and repeat the exact same command.","Update any scripts, aliases, or docs that still reference OLD_UNCOMMITTED.","Check `but --help` or current docs for the current name of the uncommitted area."],"exampleFix":"// before\nbut diff wip@\n// after\nbut diff uncommitted@","handlingStrategy":"validation","validationCode":"// shell: reject the old uncommitted-area name before invoking but\ncase \"$ARG\" in\n  *wip@*) echo \"Use 'uncommitted@' instead of '$ARG'\"; exit 1;;\nesac","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Search scripts for the old name after upgrading the CLI","Alias the new keyword and grep CI configs for the deprecated one"],"tags":["cli","deprecated-api-usage","renamed-identifier"],"backgroundTag":"deprecated-api-usage","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"}