sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Rugged::Blob.from_workdir

Write the file specified in +file_path+ to a blob in +repository+.
+file_path+ must be relative to the repository's working folder.
The repository cannot be bare.

  Blob.from_workdir(repo, 'src/blob.h') #=> '9d09060c850defbc7711d08b57def0d14e742f4e'

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rugged--Blob-from_workdir-for-pr


# Commit to git

git add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_blob.cgit commit -m "better docs for Rugged::Blob.from_workdir"


# 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--Blob-from_workdir-for-pr

hub pull-request


# Celebrate!