Decorate Gitlab::Git::Commit with Commit

This commit is contained in:
Dmitriy Zaporozhets 2013-03-31 19:00:45 +03:00
parent 9dc644635f
commit 26323046fd
5 changed files with 13 additions and 3 deletions

View file

@ -7,8 +7,8 @@ module Gitlab
attr_accessor :raw_commit, :head, :refs
delegate :message, :authored_date, :committed_date, :parents, :sha,
:date, :committer, :author, :diffs, :tree, :id, :stats,
:to_patch, to: :raw_commit
:date, :committer, :author, :diffs, :tree, :id, :stats, :to_patch,
to: :raw_commit
class << self
def find_or_first(repo, commit_id = nil, root_ref)