org.eclipse.jgit.lib
Class UserConfig
java.lang.Object
org.eclipse.jgit.lib.UserConfig
public class UserConfig
- extends java.lang.Object
The standard "user" configuration parameters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final Config.SectionParser<UserConfig> KEY
- Key for
Config.get(SectionParser).
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.