Rename pm-git-guard zsh helpers to __ prefix for Claude Code compatibility
Claude Code captures a zsh shell snapshot at session start and replays
it in every Bash tool subprocess (non-interactive). Before v2.1.47 the
capture logic dropped function names beginning with __ (double
underscore); with v2.1.47+ it does capture `__`-prefixed functions
but still drops single-underscore names like `_pm_git_guard_parse`.
Result in Claude's shell: the top-level `git()` wrapper came through
fine, but its helpers did not. Every `git …` call printed two
`command not found` warnings before the real git ran. Functionally
harmless but noisy on every tool call, with the guard silently failing
open.
Fix: rename the helpers and the sentinel variable to double-underscore:
_pm_git_guard_parse -> __pm_git_guard_parse
_pm_git_guard_should_block -> __pm_git_guard_should_block
_pm_git_guard_check -> __pm_git_guard_check
_pm_git_guard_cwd -> __pm_git_guard_cwd
_pm_git_guard_subcommand -> __pm_git_guard_subcommand
_PM_GIT_GUARD_LOADED -> __PM_GIT_GUARD_LOADED
Verified: after a session reload the fresh snapshot captures all 11
references, and `git …` runs with no stderr warnings. Interactive
shell behavior is unchanged.