sonic-pi

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

C++

Code. Music. Live.

Rugged::Repository#each_note

Call the given block once for each note_blob/annotated_object pair in +repository+
- +notes_ref+: (optional): canonical name of the reference to use defaults to "refs/notes/commits"

If no block is given, an +Enumerator+ is returned.

  @repo.each_note do |note_blob, annotated_object|
    puts "#{note_blob.oid} => #{annotated_object.oid}"
  end

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

Contribute

# Make a new branch

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


# Commit to git

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


# 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-each_note-for-pr

hub pull-request


# Celebrate!