sonic-pi

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

C++

Code. Music. Live.

Rugged::Object#remove_note

Removes a +note+ from +object+, with the given +data+
arguments, passed as a +Hash+:

- +:committer+ (optional): a hash with the signature for the committer,
  defaults to the signature from the configuration
- +:author+ (optional): a hash with the signature for the author,
  defaults to the signature from the configuration
- +:ref+: (optional): canonical name of the reference to use, defaults to "refs/notes/commits"

When the note is successfully removed +true+ will be
returned as a +Boolean+.

  author = {:email=>"[email protected]", :time=>Time.now, :name=>"Vicent Mart\303\255"}

  obj.remove_note(
    :author    => author,
    :committer => author,
    :ref       => 'refs/notes/builds'
  )

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--Object-remove_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::Object#remove_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--Object-remove_note-for-pr

hub pull-request


# Celebrate!