sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Patch#bytesize
The following options can be passed in the +options+ Hash: :exclude_context :: Boolean value specifying that context lines should be excluded when counting the number of bytes in the patch. :exclude_hunk_headers :: Boolean value specifying that hunk headers should be excluded when counting the number of bytes in the patch. :exclude_file_headers :: Boolean value specifying that file headers should be excluded when counting the number of bytes in the patch. Returns the number of bytes in the patch, depending on which options are specified.
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-bytesize-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#bytesize"
# 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-bytesize-for-pr
hub pull-request
# Celebrate!