sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::BranchCollection#[]
Return the branch with the given +name+. Branches can be looked up by their relative (+development+) or absolute (+refs/heads/development+) branch name. If a local branch and a remote branch both share the same short name (e.g. +refs/heads/origin/master+ and +refs/remotes/origin/master+), passing +origin/master+ as the +name+ will return the local branch. You can explicitly request the local branch by passing +heads/origin/master+, or the remote branch through +remotes/origin/master+. Returns the looked up branch, or +nil+ if the branch doesn't exist.
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----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#[]"
# 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----for-pr
hub pull-request
# Celebrate!