diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 16:04:35 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 16:04:35 +0300 |
commit | 49b024f5f5b88d406b895f050943db1e75adfa2a (patch) | |
tree | 65d9b34ebcaab38ecfc81da0acf0cc8e6c36d900 /app/models/commit.rb | |
parent | bb06e905efb1722502d71059c21add8cfde851aa (diff) | |
download | gitlab-ce-49b024f5f5b88d406b895f050943db1e75adfa2a.tar.gz |
Use Gitlab::Git:: for git features across application
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 96c8577f90e..e3363350997 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -8,6 +8,10 @@ class Commit # DIFF_SAFE_SIZE = 100 + def self.decorate(commits) + commits.map { |c| self.new(c) } + end + attr_accessor :raw def initialize(raw_commit) |