sonic-pi

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

C++

Code. Music. Live.

Rugged::Repository.new

Open a Git repository in the given +path+ and return a +Repository+ object
representing it. An exception will be thrown if +path+ doesn't point to a
valid repository. If you need to create a repository from scratch, use
Rugged::Repository.init_at instead.

The +path+ must point to either the actual folder (+.git+) of a Git repository,
or to the directorly that contains the +.git+ folder.

See also Rugged::Repository.discover and Rugged::Repository.bare.

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

:alternates ::
  A list of alternate object folders.

Examples:

  Rugged::Repository.new('test/.git') #=> #<Rugged::Repository:0x108849488>
  Rugged::Repository.new(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-new-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.new"


# 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-new-for-pr

hub pull-request


# Celebrate!