org.eclipse.jgit.lib
Class UserConfig

java.lang.Object
  extended by org.eclipse.jgit.lib.UserConfig

public class UserConfig
extends java.lang.Object

The standard "user" configuration parameters.


Field Summary
static Config.SectionParser<UserConfig> KEY
          Key for Config.get(SectionParser).
 
Method Summary
 java.lang.String getAuthorEmail()
           
 java.lang.String getAuthorName()
           
 java.lang.String getCommitterEmail()
           
 java.lang.String getCommitterName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final Config.SectionParser<UserConfig> KEY
Key for Config.get(SectionParser).

Method Detail

getAuthorName

public java.lang.String getAuthorName()
Returns:
the author name as defined in the git variables and configurations. If no name could be found, try to use the system user name instead.

getCommitterName

public java.lang.String getCommitterName()
Returns:
the committer name as defined in the git variables and configurations. If no name could be found, try to use the system user name instead.

getAuthorEmail

public java.lang.String getAuthorEmail()
Returns:
the author email as defined in git variables and configurations. If no email could be found, try to propose one default with the user name and the host name.

getCommitterEmail

public java.lang.String getCommitterEmail()
Returns:
the committer email as defined in git variables and configurations. If no email could be found, try to propose one default with the user name and the host name.