sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::BranchCollection#rename
Rename a branch to +new_name+. +new_name+ needs to be a branch name, not an absolute reference path (e.g. +development+ instead of +refs/heads/development+). The following options can be passed in the +options+ Hash: :force :: Overwrites the branch with the given +name+, if it already exists, instead of raising an exception. If a branch with the given +new_name+ already exists and +:force+ is not +true+, an exception will be raised. A new Rugged::Branch object for the renamed branch will be returned.
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_branch_collection.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--BranchCollection-rename-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_branch_collection.cgit commit -m "better docs for Rugged::BranchCollection#rename"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--BranchCollection-rename-for-pr
hub pull-request
# Celebrate!