@@ -106,9 +106,6 @@ show_help() {
106106 echo -e " ${C_DIM} If omitted, AI auto-detects the bump type.${C_RESET} "
107107 echo -e " ${C_GREEN} --remap${C_RESET} Re-run AI version-file discovery and regenerate"
108108 echo -e " ${C_DIM} .aicommit/bump-version.sh for this project.${C_RESET} "
109- echo -e " ${C_GREEN} --rollover${C_RESET} Enable version rollover: components that reach their"
110- echo -e " ${C_DIM} max carry into the next one (X.Y.Z: Y max 10, Z max 100;${C_RESET} "
111- echo -e " ${C_DIM} X.Y: Y max 10; X: no max). Off by default.${C_RESET} "
112109 echo -e " ${C_GREEN} --update${C_RESET} Update aicommit to the latest release from GitHub."
113110 echo -e " ${C_GREEN} -v${C_RESET} , ${C_GREEN} -V${C_RESET} , ${C_GREEN} --version${C_RESET} Show version information."
114111 echo -e " ${C_GREEN} -h${C_RESET} , ${C_GREEN} --help${C_RESET} Show this help message."
@@ -421,8 +418,6 @@ AUTO_PULL=false
421418RELEASE_MODE=false
422419RELEASE_ARG=" "
423420REMAP=false
424- CLI_ROLLOVER=false
425-
426421# Save original args before the while loop consumes them (needed for re-exec after upgrade)
427422ORIGINAL_ARGS=(" $@ " )
428423
@@ -433,7 +428,6 @@ while (( "$#" )); do
433428 --pull) AUTO_PULL=true ;;
434429 --changelog|-c) UPDATE_CHANGELOG=true ;;
435430 --remap) REMAP=true ;;
436- --rollover) CLI_ROLLOVER=true ;;
437431 --provider|-p)
438432 shift
439433 if [[ -z " ${1:- } " || " ${1:- } " =~ ^- ]]; then
@@ -612,11 +606,9 @@ MODEL_URL="${MODEL_URL%/}"
612606# ---------- Resolve version rollover (off by default) ----------
613607# When enabled, version components that reach their max carry over into the
614608# next more-significant component (like digits in a number system).
615- # Precedence: CLI --rollover > AICOMMIT_ROLLOVER env > config file > off.
609+ # Precedence: AICOMMIT_ROLLOVER env > config file > off.
616610ROLLOVER=false
617- if [[ " $CLI_ROLLOVER " == " true" ]]; then
618- ROLLOVER=true
619- elif [[ -n " ${AICOMMIT_ROLLOVER:- } " ]]; then
611+ if [[ -n " ${AICOMMIT_ROLLOVER:- } " ]]; then
620612 [[ " ${AICOMMIT_ROLLOVER,,} " == " true" || " $AICOMMIT_ROLLOVER " == " 1" ]] && ROLLOVER=true
621613elif [[ -f " $CONFIG_FILE " ]]; then
622614 cfg_rollover=$( grep -E ' ^AICOMMIT_ROLLOVER=' " $CONFIG_FILE " 2> /dev/null | head -1 | cut -d= -f2 | tr -d ' [:space:]"' " '" || true)
0 commit comments