New Features
- Add
doctorsupport for GitHub Copilot CLI, including detection of Safety Net hooks in repository hook files, user hook files, and inline Copilot settings with version-aware diagnostics. - Block
git switch --force,git switch --discard-changes, andgit checkout --force/-f.
Changed
- Show the detected Copilot CLI version in
doctoroutput and probe Copilot version commands more quickly and reliably. - Expand Copilot CLI setup documentation to cover hook-file and inline config variants, config precedence,
disableAllHooks, andCOPILOT_HOME.
Fixed
- Close a
TMPDIRpath traversal bypass so non-temp overrides cannot escape/tmp,/var/tmp, or the system temp directory. - Harden shell parsing so destructive commands are still detected inside redirects, nested command substitutions, arithmetic expansions, grouped subshells, process substitutions, and attached backticks.
- Fix
git checkoutargument parsing for ambiguous ref/pathspec cases and documented option variants without misclassifying value-taking flags such asgit switch -cfeature.