Class: RJGit::TrackingCommit

Inherits:
Commit
  • Object
show all
Defined in:
lib/commit.rb

Instance Attribute Summary collapse

Attributes inherited from Commit

#actor, #authored_date, #committed_date, #committer, #id, #jcommit, #message, #parent_count, #parents, #short_message

Instance Method Summary collapse

Methods inherited from Commit

#diff, #diffs, find_all, find_head, new_with_tree, #stats, #tree

Constructor Details

#initialize(repository, commit, tracked_pathname = nil) ⇒ TrackingCommit

Returns a new instance of TrackingCommit.



135
136
137
138
# File 'lib/commit.rb', line 135

def initialize(repository, commit, tracked_pathname = nil)
  super(repository, commit)
  @tracked_pathname = tracked_pathname
end

Instance Attribute Details

#tracked_pathnameObject (readonly)

This commit is part of a log for a single pathname. The tracked_pathname attribute tracks the pathname over renames.



133
134
135
# File 'lib/commit.rb', line 133

def tracked_pathname
  @tracked_pathname
end