The logger to use for logging git commands and results
env = {} global_opts = %w[] logger = Logger.new(STDOUT) cli = CommandLine.new(env, '/usr/bin/git', global_opts, logger) cli.logger == logger #=> true
Returns:
96 97 98
# File 'lib/git/command_line.rb', line 96 def logger @logger end