sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::SubmoduleCollection#add
call-seq: submodules.setup_add(url, path[, options]) -> submodule Add a new +submodule+. This does <tt>"git submodule add"</tt> incuding fetch and checkout of the submodule contents. - +url+: URL for the submodule's remote - +path+: path at which the submodule should be created The +options+ hash accepts all options supported by Rugged::Remote#fetch and the following: :gitlink :: (defaults to +true+) should workdir contain a gitlink to the repository in +.git/modules+ vs. repository directly in workdir. Returns the newly created +submodule+
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/submodule_collection.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--SubmoduleCollection-add-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/lib/rugged/submodule_collection.rbgit commit -m "better docs for Rugged::SubmoduleCollection#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--SubmoduleCollection-add-for-pr
hub pull-request
# Celebrate!