sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Repository#reset_path
Updates entries in the index from the +target+ commit tree, matching
the given +pathspecs+.
Passing a nil +target+ will result in removing
entries in the index matching the provided pathspecs.
- +pathspecs+: list of pathspecs to operate on (+String+ or +Array+ of +String+ objects)
- +target+(optional): Rugged::Commit, Rugged::Tag or rev that resolves to a commit or tag object.
Examples:
reset_path(File.join('subdir','file.txt'), '441034f860c1d5d90e4188d11ae0d325176869a8') #=> 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_path-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_path"
# 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_path-for-pr
hub pull-request
# Celebrate!