sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Repository#reset
Sets the current head to the specified commit oid and optionally
resets the index and working tree to match.
- +target+: Rugged::Commit, Rugged::Tag or rev that resolves to a commit or tag object
- +reset_type+: +:soft+, +:mixed+ or +:hard+
[:soft]
the head will be moved to the commit.
[:mixed]
will trigger a +:soft+ reset, plus the index will be replaced
with the content of the commit tree.
[:hard]
will trigger a +:mixed+ reset and the working directory will be
replaced with the content of the index. (Untracked and ignored files
will be left alone)
Examples:
repo.reset('origin/master', :hard) #=> nilEdit
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_repo.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Repository-reset-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_repo.cgit commit -m "better docs for Rugged::Repository#reset"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Repository-reset-for-pr
hub pull-request
# Celebrate!