sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Blame.new
Get blame data for the file at +path+ in +repo+. The following options can be passed in the +options+ Hash: :newest_commit :: The ID of the newest commit to consider in the blame. Defaults to +HEAD+. This can either be a Rugged::Object instance, or a full or abbreviated SHA1 id. :oldest_commit :: The id of the oldest commit to consider. Defaults to the first commit encountered with a NULL parent. This can either be a Rugged::Object instance, or a full or abbreviated SHA1 id. :min_line :: The first line in the file to blame. Line numbers start with 1. Defaults to +1+. :max_line :: The last line in the file to blame. Defaults to the last line in the file. :track_copies_same_file If this value is +true+, lines that have moved within a file will be tracked (like `git blame -M`). :track_copies_same_commit_moves If this value is +true+, lines that have moved across files in the same commit will be tracked (like `git blame -C`). :track_copies_same_commit_copies If this value is +true+, lines that have been copied from another file that exists in the same commit will be tracked (like `git blame -CC`). :track_copies_any_commit_copies If this value is +true+, lines that have been copied from another file that exists in *any* commit will be tracked (like `git blame -CCC`).
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_blame.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Blame-new-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_blame.cgit commit -m "better docs for Rugged::Blame.new"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Blame-new-for-pr
hub pull-request
# Celebrate!