sonic-pi

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

C++

Code. Music. Live.

Rugged::Repository#exists?

Return whether an object with the given SHA1 OID (represented as
a hex string of at least 7 characters) exists in the repository.

  repo.include?("d8786bfc97485e8d7b19b21fb88c8ef1f199fc3f") #=> true
  repo.include?("d8786bfc") #=> true

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Repository-exists--for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_repo.cgit commit -m "better docs for Rugged::Repository#exists?"


# 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--Repository-exists--for-pr

hub pull-request


# Celebrate!