sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Rugged::Repository.bare

Open a bare Git repository at +path+ and return a +Repository+
object representing it.

This is faster than Rugged::Repository.new, as it won't attempt to perform
any +.git+ directory discovery, won't try to load the config options to
determine whether the repository is bare and won't try to load the workdir.

Optionally, you can pass a list of alternate object folders or an options Hash.

  Rugged::Repository.bare(path, ['./other/repo/.git/objects'])
  Rugged::Repository.bare(path, opts)

The following options can be passed in the +options+ Hash:

:backend ::
  A Rugged::Backend instance
:alternates ::
  A list of alternate object folders.
  Rugged::Repository.bare(path, :alternates => ['./other/repo/.git/objects'])

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_repo.c

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Repository-bare-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_repo.cgit commit -m "better docs for Rugged::Repository.bare"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rugged--Repository-bare-for-pr

hub pull-request


# Celebrate!