sonic-pi

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

C++

Code. Music. Live.

Rugged::Repository#create_branch

Create a new branch in the repository

name - The name of the branch (without a full reference path)
sha_or_ref - The target of the branch; either a String representing
an OID or a reference name, or a Rugged::Object instance.

Returns a Rugged::Branch object

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/lib/rugged/repository.rb

Contribute

# Make a new branch

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


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/lib/rugged/repository.rbgit commit -m "better docs for Rugged::Repository#create_branch"


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

hub pull-request


# Celebrate!