sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Reference.valid_name?
Check if a reference name is well-formed.
Valid reference names must follow one of two patterns:
1. Top-level names must contain only capital letters and underscores,
and must begin and end with a letter. (e.g. "HEAD", "ORIG_HEAD").
2. Names prefixed with "refs/" can be almost anything. You must avoid
the characters '~', '^', ':', '\\', '?', '[', and '*', and the
sequences ".." and "@{" which have special meaning to revparse.
Returns true if the reference name is valid, false if not.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_reference.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Reference-valid_name--for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_reference.cgit commit -m "better docs for Rugged::Reference.valid_name?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Reference-valid_name--for-pr
hub pull-request
# Celebrate!