Method: Git::CommandLine#env

Defined in:
lib/git/command_line.rb

#envHash<String, String> (readonly)

Variables to set (or unset) in the git command's environment

Examples:

env = { 'GIT_DIR' => '/path/to/git/dir' }
command_line = Git::CommandLine.new(env, '/usr/bin/git', [], Logger.new(STDOUT))
command_line.env #=> { 'GIT_DIR' => '/path/to/git/dir' }

Returns:

  • (Hash<String, String>)

See Also:



49
50
51
# File 'lib/git/command_line.rb', line 49

def env
  @env
end