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).

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Patch-from_strings-for-pr


# Commit to git

git 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 request

gem 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!