Subject: | [PATCH] Add and use Git::PurePerl::Actor |
Date: | Sat, 21 Mar 2009 11:53:59 +0100 |
To: | bug-Git-Pureperl [...] rt.cpan.org |
From: | Martijn van Beers <MARTIJN [...] cpan.org> |
When parsing a commit, split up the author and committer fields into name,
email and commit time. This adds two new DateTime fields, authored_time
and committed_time to ::Commit and changes the type of the author and
committer fields to Git::PurePerl::Actor, which is an object with name and
email fields.
---
lib/Git/PurePerl/Actor.pm | 12 ++++++++++++
lib/Git/PurePerl/Object/Commit.pm | 26 ++++++++++++++++++++++----
t/protocol.t | 10 +++++-----
t/simple.t | 24 +++++++++++-------------
4 files changed, 50 insertions(+), 22 deletions(-)
create mode 100644 lib/Git/PurePerl/Actor.pm
Message body is not shown because sender requested not to inline it.