Skip to content

v2.10.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 16:57
· 15 commits to main since this release

v2.10.0 — This release corrects backup pruning logic to prevent data loss, separates read-only command optimizations from storage management, and refines commit classification for accurate history tracking.

Backup Overhead Reduction

  • Removed automatic backup creation for 7 commands (PUSH, FETCH, branch CREATE,
    stage RM/RESTORE, and stash SAVE/POP) where backup protection was unnecessary
    because the operation is either reversible natively (FETCH, branch CREATE) or
    already guarded by git-courers confirmation gates (stage, stash, PUSH). This
    eliminates I/O overhead and storage churn without sacrificing safety.

Read-Only Command Optimization

  • Removed automatic backup creation for 7 read-only commands (PUSH, FETCH, branch CREATE, stage RM/RESTORE, and stash SAVE/POP) to drastically reduce redundant network operations like unnecessary PUSH or FETCH cycles during routine repository maintenance, separating this storage efficiency gain from the pruning logic.

Commit Classification Logic Refinement

  • Fixed misclassification of file deletions as refactor: by implementing higher-weight logic for removal operations; commits that delete files now correctly generate delete: tags to ensure history accurately reflects operational intent rather than structural changes.

Security Hardening and Agent Control

  • Enforced a strict deny policy for raw Git commands executed via Bash hooks to prevent agents from corrupting repository state outside of managed worktrees, blocking unauthorized direct execution that could bypass safety checks.
  • Corrected the Hook event handler to properly identify user prompts (UserPromptSubmit) before triggering security verifications, ensuring critical actions are validated only after explicit human intent is confirmed.

Documentation Accuracy and Reference Updates

  • Rewrote the manual to eliminate discrepancies between implementation and guides: corrected descriptions of non-existent modes, added support for filters in branch commands, clarified that finish is strictly a cleanup operation, and updated Go version requirements while excluding test files from AI audits.

Changelog

  • c7b30e9 chore(deps): bump github.com/BurntSushi/toml from 1.4.0 to 1.6.0 (#173)
  • 1acddf4 chore(deps): bump github.com/mark3labs/mcp-go from 0.47.0 to 0.55.1 (#174)
  • 0b683fa feat(backup): rewrite PruneBackups to reachability+age and add auto-prune gate (#187)
  • c622da1 feat(branch): add from param to branch CREATE + clarify sync PULL docs (#190)
  • b5272fe fix: deleted files produce delete: commit type instead of refactor: (#188)
  • 7ce5f44 fix: refactor git-courer permissions and update hook event tracking

Full Changelog: v2.9.0...v2.10.0