Class: Git::Lib

Inherits:
Object
  • Object
show all
Defined in:
lib/git_review_notes/git_lib_fix_19.rb

Overview

Instance Method Summary collapse

Instance Method Details

#config_get(name) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/git_review_notes/git_lib_fix_19.rb', line 5

def config_get(name)
  do_get = lambda do |path|
    command('config', ['--get', name])
  end

  if @git_dir
    Dir.chdir(@git_dir, &do_get)
  else
    build_list.call
  end
end