comparison app/models/repository/git.rb @ 117:af80e5618e9b redmine-1.1

* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author Chris Cannam
date Thu, 13 Jan 2011 12:53:21 +0000
parents 513646585e45
children b859cc0c4fa1 051f544170fe
comparison
equal deleted inserted replaced
39:150ceac17a8d 117:af80e5618e9b
25 Redmine::Scm::Adapters::GitAdapter 25 Redmine::Scm::Adapters::GitAdapter
26 end 26 end
27 27
28 def self.scm_name 28 def self.scm_name
29 'Git' 29 'Git'
30 end
31
32 # Returns the identifier for the given git changeset
33 def self.changeset_identifier(changeset)
34 changeset.scmid
35 end
36
37 # Returns the readable identifier for the given git changeset
38 def self.format_changeset_identifier(changeset)
39 changeset.revision[0, 8]
30 end 40 end
31 41
32 def branches 42 def branches
33 scm.branches 43 scm.branches
34 end 44 end