Method: Git.open
- Defined in:
- lib/git.rb
.open(working_dir, options = {}) ⇒ Object
open an existing git working directory
this will most likely be the most common way to create a git reference, referring to a working directory. if not provided in the options, the library will assume your git_dir and index are in the default place (.git/, .git/index)
options
:repository => '/path/to/alt_git_dir'
:index => '/path/to/alt_index_file'
162 163 164 |
# File 'lib/git.rb', line 162 def self.open(working_dir, = {}) Base.open(working_dir, ) end |