Method: Grit::Commit.actor
- Defined in:
- lib/grit/commit.rb
.actor(line) ⇒ Object
Parse out the actor (author or committer) info
Returns [String (actor name and email), Time (acted at time)]
291 292 293 294 |
# File 'lib/grit/commit.rb', line 291 def self.actor(line) m, actor, epoch = *line.match(/^.+? (.*) (\d+) .*$/) [Actor.from_string(actor), Time.at(epoch.to_i)] end |