com.caucho.env.git
Class GitCommit

java.lang.Object
  extended by com.caucho.env.git.GitCommit

public class GitCommit
extends java.lang.Object

The Commit structure has four main data items:


Constructor Summary
GitCommit()
           
 
Method Summary
 java.lang.String get(java.lang.String key)
          Returns the given metadata value.
 java.lang.String getMessage()
           
 java.util.Map<java.lang.String,java.lang.String> getMetaData()
          Returns the meta-data map for the commit.
 java.lang.String getParent()
          The hash of the previous version's Commit entry or null if this Commit has no previous version.
 java.lang.String getTree()
          The hash of the directory Tree containing the committed content.
 void put(java.lang.String key, java.lang.String value)
          Adds a metadata value.
 void setMessage(java.lang.String message)
           
 void setParent(java.lang.String parent)
          The hash of the previous version's Commit entry or null if this Commit has no previous version.
 void setTree(java.lang.String tree)
          The hash of the directory Tree containing the committed content.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GitCommit

public GitCommit()
Method Detail

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getParent

public java.lang.String getParent()
The hash of the previous version's Commit entry or null if this Commit has no previous version.


setParent

public void setParent(java.lang.String parent)
The hash of the previous version's Commit entry or null if this Commit has no previous version.


getTree

public java.lang.String getTree()
The hash of the directory Tree containing the committed content.


setTree

public void setTree(java.lang.String tree)
The hash of the directory Tree containing the committed content.


put

public void put(java.lang.String key,
                java.lang.String value)
Adds a metadata value.


get

public java.lang.String get(java.lang.String key)
Returns the given metadata value.


getMetaData

public java.util.Map<java.lang.String,java.lang.String> getMetaData()
Returns the meta-data map for the commit.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object