Author: struberg
Date: Sun Feb 13 21:57:57 2011
New Revision: 1070309

URL: http://svn.apache.org/viewvc?rev=1070309&view=rev
Log:
[SCM-607] BlameLine should contain author _and_ committer information

Modified:
    
maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/blame/BlameLine.java

Modified: 
maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/blame/BlameLine.java
URL: 
http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/blame/BlameLine.java?rev=1070309&r1=1070308&r2=1070309&view=diff
==============================================================================
--- 
maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/blame/BlameLine.java
 (original)
+++ 
maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/blame/BlameLine.java
 Sun Feb 13 21:57:57 2011
@@ -38,11 +38,31 @@ public class BlameLine
 
     private String author;
 
+    private String committer;
+
+    /**
+     * @param date of the commit
+     * @param revision of the commit
+     * @param author will also be used as committer identification
+     */
     public BlameLine( Date date, String revision, String author )
     {
+        this( date, revision, author, author );
+    }
+
+    /**
+     *
+     * @param date of the commit
+     * @param revision of the commit
+     * @param author the person who wrote the line
+     * @param committer the person who committed the change
+     */
+    public BlameLine( Date date, String revision, String author, String 
committer )
+    {
         setDate( date );
         setRevision( revision );
         setAuthor( author );
+        setCommitter( committer );
     }
 
     public String getRevision()
@@ -65,6 +85,19 @@ public class BlameLine
         this.author = author;
     }
 
+    public String getCommitter()
+    {
+        return committer;
+    }
+
+    public void setCommitter( String committer )
+    {
+        this.committer = committer;
+    }
+
+    /**
+     * @return the commit date
+     */
     public Date getDate()
     {
         if ( date != null )


Reply via email to