edu.nyu.cs.javagit.api.commands
Class GitLogResponse.Commit

java.lang.Object
  extended by edu.nyu.cs.javagit.api.commands.GitLogResponse.Commit
Enclosing class:
GitLogResponse

public class GitLogResponse.Commit
extends java.lang.Object

A data structure which holds information about each commit.


Constructor Summary
GitLogResponse.Commit(java.lang.String sha, java.util.List<java.lang.String> mergeDetails, java.lang.String author, java.lang.String date, java.lang.String message, java.util.List<GitLogResponse.CommitFile> files)
          Constructor for creating a commit data structure.
 
Method Summary
 java.lang.String getAuthor()
           
 java.lang.String getDateString()
           
 java.util.List<GitLogResponse.CommitFile> getFiles()
          This returns the list of files affected by a particular commit.
 int getFilesChanged()
           
 int getLinesDeleted()
           
 int getLinesInserted()
           
 java.util.List<java.lang.String> getMergeDetails()
           
 java.lang.String getMessage()
           
 java.lang.String getSha()
           
 void setAuthor(java.lang.String author)
           
 void setDateString(java.lang.String date)
           
 void setFiles(java.util.List<GitLogResponse.CommitFile> files)
           
 void setMergeDetails(java.util.List<java.lang.String> mergeDetails)
           
 void setMessage(java.lang.String message)
           
 void setSha(java.lang.String sha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitLogResponse.Commit

public GitLogResponse.Commit(java.lang.String sha,
                             java.util.List<java.lang.String> mergeDetails,
                             java.lang.String author,
                             java.lang.String date,
                             java.lang.String message,
                             java.util.List<GitLogResponse.CommitFile> files)
Constructor for creating a commit data structure.

Parameters:
sha - The SHA hash for a particular commit instance.
mergeDetails - The Merge details for a particular commit instance. Pass null is commit is not a merge
author - The Author for a particular commit instance.
date - The Date of a particular commit instance.
message - The Message for a particular commit instance.
files - The list of files affected by a particular commit instance.
Method Detail

getSha

public java.lang.String getSha()
Returns:
This returns the SHA for each commit.

getMergeDetails

public java.util.List<java.lang.String> getMergeDetails()
Returns:
This returns the merge details for each commit. If the commit was not a merge it returns null.

getAuthor

public java.lang.String getAuthor()
Returns:
This return the name of the author of the commit.

getDateString

public java.lang.String getDateString()
Returns:
This return the Date object for a particular commmit.

getMessage

public java.lang.String getMessage()
Returns:
This returns the message of a commit.

getFiles

public java.util.List<GitLogResponse.CommitFile> getFiles()
This returns the list of files affected by a particular commit.


setSha

public void setSha(java.lang.String sha)
Parameters:
sha - sets the SHA for a commit.

setMergeDetails

public void setMergeDetails(java.util.List<java.lang.String> mergeDetails)
Parameters:
mergeDetails - This set the merge details for a particular commit.

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - This sets the Author of a particular commit.

setDateString

public void setDateString(java.lang.String date)
Parameters:
date - This sets the Date object for a particular commit.

setMessage

public void setMessage(java.lang.String message)
Parameters:
message - This sets the Message for a particular commit.

setFiles

public void setFiles(java.util.List<GitLogResponse.CommitFile> files)
Parameters:
files - This sets the list of files affected by a particular commit.

getLinesDeleted

public int getLinesDeleted()

getLinesInserted

public int getLinesInserted()

getFilesChanged

public int getFilesChanged()


Copyright © 2008. All Rights Reserved.