sonic-pi

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

C++

Code. Music. Live.

Rugged::RemoteCollection#rename

Renames a remote.

All remote-tracking branches and configuration settings
for the remote are updated.

Non-default refspecs cannot be renamed automatically and will be
yielded to the given block.

Anonymous, in-memory remotes created through
+ReferenceCollection#create_anonymous+ can not be given a name through
this method.

Returns a new Rugged::Remote object with the new name.

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--RemoteCollection-rename-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_remote_collection.cgit commit -m "better docs for Rugged::RemoteCollection#rename"


# 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--RemoteCollection-rename-for-pr

hub pull-request


# Celebrate!