Class: Git::Lib

Inherits:
Object
  • Object
show all
Defined in:
lib/ticgit-ng.rb

Instance Method Summary collapse

Instance Method Details

#config_get(name) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/ticgit-ng.rb', line 23

def config_get(name)
  do_get = lambda do |x|
    command('config', ['--get', name])
  end
  if @git_dir
    Dir.chdir(@git_dir, &do_get)
  else
    build_list.call
  end
end