Class: MultiGit::RuggedBackend::Commit
- Inherits:
-
Object
- Object
- Object
- MultiGit::RuggedBackend::Commit
show all
- Includes:
- Commit
- Defined in:
- lib/multi_git/rugged_backend/commit.rb
Instance Attribute Summary
Attributes included from Object
#oid, #repository
Instance Method Summary
collapse
#[], #type
#abstract
Methods included from Object
#bytesize, #content, #to_builder, #to_io
Instance Method Details
16
17
18
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 16
def author
MultiGit::Handle.new(rugged_object.author[:name],rugged_object.author[:email])
end
|
#commit_time ⇒ Object
28
29
30
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 28
def commit_time
rugged_object.committer[:time]
end
|
#committer ⇒ Object
24
25
26
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 24
def committer
MultiGit::Handle.new(rugged_object.committer[:name],rugged_object.committer[:email])
end
|
32
33
34
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 32
def message
rugged_object.message
end
|
12
13
14
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 12
def parents
@parents ||= rugged_object.parent_oids.map{|oid| repository.read(oid) }
end
|
20
21
22
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 20
def time
rugged_object.author[:time]
end
|
8
9
10
|
# File 'lib/multi_git/rugged_backend/commit.rb', line 8
def tree
@tree ||= repository.read(rugged_object.tree_oid)
end
|