Class: Blastr::SourceControl::GitLogEntry

Inherits:
LogEntry
  • Object
show all
Defined in:
lib/scm/git.rb

Instance Attribute Summary

Attributes inherited from LogEntry

#author, #comment, #revision

Instance Method Summary collapse

Methods inherited from LogEntry

#==, #to_s

Constructor Details

#initialize(commit) ⇒ GitLogEntry

Returns a new instance of GitLogEntry.



8
9
10
11
12
# File 'lib/scm/git.rb', line 8

def initialize(commit)
  @revision = GitRevision.new(commit.sha, commit.date)
  @author = commit.author.name
  @comment = commit.message
end