sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Patch.from_strings
Directly generate a Rugged::Patch from the difference between the content of the two strings `old_content` and `new_content`. The following options can be passed in the +options+ Hash: :old_path :: An optional string to treat +blob+ as if it had this filename. :new_path :: An optional string to treat +other+ as if it had this filename. Additionally, `options` can also contain all other valid diff options (see Rugged::Tree#diff for a complete list).
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_patch.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Patch-from_strings-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_patch.cgit commit -m "better docs for Rugged::Patch.from_strings"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Patch-from_strings-for-pr
hub pull-request
# Celebrate!