Merge pull request #2183 from arakasi1/feat/2163-statusline-git-segment

feat(#2163): opt-in git branch/status segment in the statusline
This commit is contained in:
Tom Boucher
2026-07-13 16:38:56 -04:00
committed by GitHub
25 changed files with 613 additions and 35 deletions

View File

@@ -770,6 +770,13 @@ function cmdConfigSet(cwd: string, keyPath: string | undefined, value: string |
}
}
// statusline.show_git — boolean only
if (kp === 'statusline.show_git') {
if (typeof parsedValue !== 'boolean') {
error(`Invalid statusline.show_git '${val}'. Must be a boolean (true or false).`);
}
}
// Fallow scope + profile enum validation (#3424)
const VALID_FALLOW_SCOPES = ['phase', 'repo'];
if (kp === 'code_quality.fallow.scope') assertEnumValue(parsedValue, val, VALID_FALLOW_SCOPES, 'code_quality.fallow.scope');