sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Rugged::SubmoduleCollection#[]

Lookup +submodule+ by +name+ or +path+ (they are usually the same) in
+repository+.

Returns +nil+ if submodule does not exist.

Raises <tt>Rugged::SubmoduleError</tt> if submodule exists only in working
directory (i.e. there is a subdirectory that is a valid self-contained git
repository) and is not mentioned in the +HEAD+, the index and the config.

Source | Google | Stack overflow

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_submodule_collection.c

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--SubmoduleCollection----for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_submodule_collection.cgit commit -m "better docs for Rugged::SubmoduleCollection#[]"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rugged--SubmoduleCollection----for-pr

hub pull-request


# Celebrate!