Skip to main content

git_cmd_local

Function git_cmd_local 

Source
pub fn git_cmd_local() -> Command
Expand description

Build a Command for git suitable for LOCAL operations (config get/set, tag verify, add, commit, log). Sets GIT_TERMINAL_PROMPT=0 to prevent any prompt-driven hang, but does NOT set GIT_SSH_COMMAND because no network is involved. Use git_cmd_safe for any operation that talks to a remote.