sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Tree#update
Create a new Rugged::Tree based on the curent one by applying the changes described in +updates+. The updates are given as a list of +Hash+ containing: :action :: +:upsert+ or +:remove+ to add/insert an entry, or to remove it resp. :oid :: The +oid+ of the entry. This is ignored for removals. :filemode :: The octal filemode for the entry. This is ignored for remvals. :path :: The path of the entry. This may contain slashes and the intermediate trees will be created.
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_tree.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Tree-update-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_tree.cgit commit -m "better docs for Rugged::Tree#update"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Tree-update-for-pr
hub pull-request
# Celebrate!