Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/cli/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ function resolveBranchDataMode(raw: Record<string, unknown>): { mode: BranchData
if (typeof value !== "string") throw new Error("branch_data_mode must be a string.");
const mode = value.trim().toLowerCase();
if (!mode) return { mode: null, explicit: false };
if (mode === "none") {
throw new Error(
"Invalid branch_data_mode 'none'. Omit branch_data_mode to create branches without data (the default)."
);
}
if (!BRANCH_DATA_MODE_VALUES.includes(mode as BranchDataMode)) {
throw new Error(
`Invalid branch_data_mode '${value}'. Allowed values are: ${BRANCH_DATA_MODE_VALUES.join(", ")}.`
Expand Down