sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Repository#default_signature
Returns a +Hash+ with the default user +signature+ or +nil+. Looks up the +user.name+ and +user.email+ from the configuration and uses the current time as the timestamp, and creates a new signature based on that information. It will return +nil+ if either the +user.name+ or +user.email+ are not set. Returns a +Hash+: - +:name+: the +user.name+ config value - +:email+: the +user.email+ config value - +:time+: the current time as a +Time+ instance
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_repo.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Repository-default_signature-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#default_signature"
# 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-default_signature-for-pr
hub pull-request
# Celebrate!