class RackCommitStats::Commit
Public Instance Methods
branch()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 5 def branch head.name.split('/').last end
message()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 13 def message commit.message.gsub /[\r\n]/, '' end
revision()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 9 def revision head.target_id end
Protected Instance Methods
repo()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 23 def repo @_repo ||= Rugged::Repository.new(RackCommitStats.config.repo_path) end
Private Instance Methods
commit()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 33 def commit head.target end
head()
click to toggle source
# File lib/rack-commit-stats/commit.rb, line 29 def head repo.head end