module Git
def self.open(working_dir, options = {})
-
(Git::Base)
- an object that can execute git commands in the context
Options Hash:
(**options)
-
:log
(Logger
) -- A logger to use for Git operations. Git -
:index
(Pathname
) -- used to specify a non-standard path to an -
:repository
(Pathname
) -- used to specify a non-standard path to
Parameters:
-
options
(Hash
) -- The options for this command (see list of valid -
working_dir
(Pathname
) -- the path to the working directory to use
Other tags:
- Example: Open a working copy whose repository is in a non-standard directory -
Example: Use a logger to see what is going on -
Example: Open a Git working directory in some other directory -
Example: Open the Git working directory in the current directory -
def self.open(working_dir, options = {}) Base.open(working_dir, options) end