Documentation
¶
Overview ¶
Package gitenv centralizes process environment sanitization for internal git commands that explicitly select their repository with -C or Cmd.Dir.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command constructs a git subprocess pinned to dir with inherited repository variables removed from the environment.
func IsRepositoryEnvName ¶
IsRepositoryEnvName reports whether name points Git at an inherited repository, index, object store, or namespace that can override an explicit worktree path.
func SanitizedEnv ¶
func SanitizedEnv() []string
SanitizedEnv returns the current process environment without repository-local Git variables. Transport and credential variables such as GIT_SSH_COMMAND are intentionally preserved.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.