sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Index#add
Add a new entry to the index or update an existing entry in the index. If passed a +path+ to an existing, readable file relative to the workdir, creates a new index entry based on this file. Alternatively, a new index entry can be created by passing a Hash containing all key/value pairs of an index entry. Any gitignore rules that might match +path+ (or the +:path+ value of the entry hash) are ignored. If the index entry at +path+ (or +:path+) currently contains a merge conflict, it will no longer be marked as conflicting and the data about the conflict will be moved into the "resolve undo" (REUC) section of the index.
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_index.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Index-add-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_index.cgit commit -m "better docs for Rugged::Index#add"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Index-add-for-pr
hub pull-request
# Celebrate!