sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Repository.init_at
Initialize a Git repository in +path+. This implies creating all the
necessary files on the FS, or re-initializing an already existing
repository if the files have already been created.
The +is_bare+ (optional, defaults to false) attribute specifies whether
the Repository should be created on disk as bare or not.
Bare repositories have no working directory and are created in the root
of +path+. Non-bare repositories are created in a +.git+ folder and
use +path+ as working directory.
The following options can be passed in the +options+ Hash:
:backend ::
A Rugged::Backend instance
Rugged::Repository.init_at('repository', :bare) #=> #<Rugged::Repository:0x108849488>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 branchgit checkout -b -your-name--update-docs-Rugged--Repository-init_at-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_repo.cgit commit -m "better docs for Rugged::Repository.init_at"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Repository-init_at-for-pr
hub pull-request
# Celebrate!