sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Remote#push
Pushes the given +refspecs+ to the given +remote+. Returns a hash that contains key-value pairs that reflect pushed refs and error messages, if applicable. You can optionally pass in an alternative list of +refspecs+ to use instead of the push refspecs already configured for +remote+. The following options can be passed in the +options+ Hash: :credentials :: The credentials to use for the push operation. Can be either an instance of one of the Rugged::Credentials types, or a proc returning one of the former. The proc will be called with the +url+, the +username+ from the url (if applicable) and a list of applicable credential types. :update_tips :: A callback that will be executed each time a reference is updated remotely. It will be passed the +refname+, +old_oid+ and +new_oid+. :headers :: Extra HTTP headers to include with the push (only applies to http:// or https:// remotes) Example: remote = Rugged::Remote.lookup(@repo, 'origin') remote.push(["refs/heads/master", ":refs/heads/to_be_deleted"])
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_remote.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Remote-push-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_remote.cgit commit -m "better docs for Rugged::Remote#push"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Remote-push-for-pr
hub pull-request
# Celebrate!