Mercurial > hg > soundsoftware-site
diff app/models/repository/.svn/text-base/git.rb.svn-base @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | 513646585e45 |
children | 051f544170fe |
line wrap: on
line diff
--- a/app/models/repository/.svn/text-base/git.rb.svn-base Fri Nov 19 14:05:24 2010 +0000 +++ b/app/models/repository/.svn/text-base/git.rb.svn-base Thu Jan 13 14:12:06 2011 +0000 @@ -29,6 +29,16 @@ 'Git' end + # Returns the identifier for the given git changeset + def self.changeset_identifier(changeset) + changeset.scmid + end + + # Returns the readable identifier for the given git changeset + def self.format_changeset_identifier(changeset) + changeset.revision[0, 8] + end + def branches scm.branches end