Expand description
Subprocess helpers — standardized command builders for external tools.
All git subprocess calls should use git_command to ensure locale
normalization (LC_ALL=C), which prevents non-English error messages
from breaking stderr pattern matching.
Functions§
- git_
command - Build a
gitcommand withLC_ALL=Cpre-set. - git_
output - Run a git command and return the raw
Output. - git_
silent - Run a git command, returning stdout on success or
Noneon failure. - git_
stdout - Run a git command and return its stdout as a trimmed string.
- git_
stdout_ in - Run a git command in a specific directory and return stdout as a trimmed string.