class for author/committer/tagger lines
class for author/committer/tagger lines
# File lib/grit/git-ruby/object.rb, line 23 def initialize(str) m = /^(.*?) <(.*)> (\d+) ([+-])0*(\d+?)$/.match(str) if !m raise RuntimeError, "invalid header '%s' in commit" % str end @name = m[1] @email = m[2] @date = Time.at(Integer(m[3])) @offset = (m[4] == "-" ? -1 : 1)*Integer(m[5]) end
Generated with the Darkfish Rdoc Generator 2.