Skip to content

Redesign Git Protection settings - #17

Merged
glockbender merged 1 commit into
mainfrom
codex/git-protection-settings
Nov 26, 2026
Merged

glockbender merged 1 commit into
mainfrom
codex/git-protection-settings

Conversation

@glockbender

Copy link
Copy Markdown
Owner

Changes

  • Add a global switch with a confirmation before disabling Git Protection. Show hook status and actions for each Claude Code and Codex profile.
  • Separate Force Push and Delete Remote Branch rules. Show the built-in Push checks, allow stricter rules for individual repositories, and preview the effective check for a branch. Existing rules carry over to both operations.
  • Keep the settings toolbar above the scrolling content and remove the Mothership migration instructions.

Verification

  • Passed task verify and task verify-all. The local JetBrains plugin check was skipped because no supported IDE was installed.
  • Ran 24 chat cases in Claude Code 2.1.332 and Codex 0.171.0-alpha.13.2 using temporary CLI profiles, a local model fixture, and a disposable Git remote.
  • Disabled and re-enabled protection in Settings without reinstalling either hook. Both clients kept their hook registrations, and Codex kept its trust decision.
  • Verified that one branch could block Force Push and allow deletion, while a second branch used the reverse rules. The test remote rejected every update it received and all refs stayed unchanged.

@glockbender
glockbender merged commit f8e1286 into main Nov 26, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant