Module: MultiGit::JGitBackend

Extended by:
Backend
Defined in:
lib/multi_git/backend.rb,
lib/multi_git/jgit_backend.rb,
lib/multi_git/jgit_backend/ref.rb,
lib/multi_git/jgit_backend/blob.rb,
lib/multi_git/jgit_backend/tree.rb,
lib/multi_git/jgit_backend/commit.rb,
lib/multi_git/jgit_backend/config.rb,
lib/multi_git/jgit_backend/remote.rb,
lib/multi_git/jgit_backend/repository.rb

Defined Under Namespace

Classes: Blob, Commit, Config, Object, Ref, Remote, Repository, RewindeableIO, Tree

Class Method Summary collapse

Methods included from Backend

available?, load!, open

Class Method Details

.load!Object



92
93
94
# File 'lib/multi_git/backend.rb', line 92

def self.load!
  require 'multi_git/jgit_backend'
end

.open(path, options = {}) ⇒ Repository

Parameters:

  • directory (String)
  • options (Hash) (defaults to: {})

Options Hash (options):

  • :init (Boolean)

    if true the repository is automatically created (defaults to: false)

  • :bare (Boolean)

    if true the repository is expected to be bare

Returns:



12
13
14
# File 'lib/multi_git/jgit_backend.rb', line 12

def open(path, options = {})
  Repository.new(path, options)
end