sonic-pi

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

C++

Code. Music. Live.

Rugged::Index#remove_all

Remove all matching index entries.

Searches +index+ for entries that match +pathspec+ and removes them
from the index.

+pathspec+ can either be a String, or an Array of Strings.
If +pathspec+ is empty, all entries in the index will be matched.

If a block is given, each matched +path+ and the +pathspec+ that matched
it will be passed to the block. If the return value of +block+ is
falsy, the matching item will not be removed from the index.

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Index-remove_all-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_index.cgit commit -m "better docs for Rugged::Index#remove_all"


# 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--Index-remove_all-for-pr

hub pull-request


# Celebrate!