Cross Reference: get_commit.rb
xref
: /
ontohub
/
lib
/
git_repository
/
get_commit.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
get_commit.rb revision a2b3d5bb602a9a0d970b6640948f1d7d75ce78bf
module
GitRepository
::
GetCommit
# depends on GitRepository
extend
ActiveSupport
::
Concern
protected
def
get_commit
(
commit_oid
=
nil
)
if
@
repo.empty
?
nil
else
@
repo.lookup
(
commit_oid
||
head_oid
)
end
end
end