Defect #8857 » Alias-the-revision-and-scmid-properties-for-Git-Revi.patch
| lib/redmine/scm/adapters/git_adapter.rb | ||
|---|---|---|
|
end
|
||
|
class Revision < Redmine::Scm::Adapters::Revision
|
||
|
def initialize(attributes={})
|
||
|
super
|
||
|
self.revision = attributes[:scmid]
|
||
|
end
|
||
|
# Returns the scmid.
|
||
|
alias_method :revision, :scmid
|
||
|
# Sets the scmid.
|
||
|
alias_method :revision=, :scmid=
|
||
|
# Returns the readable identifier
|
||
|
def format_identifier
|
||
|
identifier[0,8]
|
||