Method: Git::Base.open
- Defined in:
- lib/git/base.rb
.open(working_dir, opts = {}) ⇒ Object
opens a new Git Project from a working directory you can specify non-standard git_dir and index file in the options
22 23 24 25 26 27 |
# File 'lib/git/base.rb', line 22 def self.open(working_dir, opts={}) default = {:working_directory => working_dir} = default.merge(opts) self.new() end |