2.0 KiB
2.0 KiB
Codex Script Notes
This file is a fast-reference companion for the large local helper scripts.
.maintain-custom-release.sh
Purpose:
- maintain a custom stable branch such as
release/v1.26-custom - start from
BASE_TAG - fetch and sync upstream compare / release-target refs explicitly
- cherry-pick selected custom work from a local source branch
Current interaction model:
- interactive menu with submenus:
Manual Backups >Fetch upstreams >Sync >Rollback >Restore >
- submenu navigation:
Enterorb/B=> Back0=> Exit
Persistent runtime state:
- runtime copy:
/tmp/.maintain-custom-release.sh - persisted settings:
/tmp/.maintain-custom-release.env - restore points:
.git/.maintain-custom-release-restore-points/ - snapshots:
.git/.maintain-custom-release-snapshots/ - active state file:
.git/.maintain-custom-release-state
Recommended order:
Bootstrap maintenance branchFetch upstream/main compare refFetch upstream release target refShow import planSyncactions as needed
Important behavior:
bootstrapshould only create/switch the maintenance branch fromBASE_TAG; it should not fetch automaticallyrollbackshould remove bootstrap-created maintenance branches and clean script-managed refs/artifacts- deleting a saved exact snapshot should also remove its paired
backup/maint-*Git Graph marker
.update-gitea.sh
Purpose:
- safe upstream sync helper for the working tree
- create safety backups before real sync actions
- provide
dry-run,rollback,restore-stash, andrestore-snapshot
Key safety expectations:
dry-runmust not modify the real repository- real sync actions must preserve enough state for exact rollback
.import-upstream-cherry-pick.sh
Purpose:
- import upstream commits through
git cherry-pick -x - support commit-by-commit or range-based import
Key safety expectations:
- save backup branch, snapshot, and stash before real import actions
- support
continue,rollback,restore-stash, andrestore-snapshot