sonic-pi

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

C++

Code. Music. Live.

Rugged::Reference#target

Return the target of +reference+.

If +reference+ is a symbolic reference, it returns the target
reference object.

If +reference+ is a direct reference, it returns the target object.

  ref1.type #=> :symbolic
  ref1.target #=> #<Rugged::Reference ...>

  ref2.type #=> :direct
  ref2.target #=> #<Rugged::Commit ...>

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Reference-target-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_reference.cgit commit -m "better docs for Rugged::Reference#target"


# 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--Reference-target-for-pr

hub pull-request


# Celebrate!