Commit 8c01448c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Dontr decoarate already decorated stuff

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0852d5e4
...@@ -19,7 +19,13 @@ class Commit ...@@ -19,7 +19,13 @@ class Commit
class << self class << self
def decorate(commits) def decorate(commits)
commits.map { |c| self.new(c) } commits.map do |commit|
if commit.kind_of?(Commit)
commit
else
self.new(commit)
end
end
end end
# Calculate number of lines to render for diffs # Calculate number of lines to render for diffs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment