Class JGitCheckInCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.command.checkin.AbstractCheckInCommand
org.apache.maven.scm.provider.git.jgit.command.checkin.JGitCheckInCommand
- All Implemented Interfaces:
Command
,GitCommand
This provider uses the following strategy to discover the committer and author name/mail for a commit:
the default email domain to be used (will be used to create an email from the username passed to maven):
you can also enforce the usage of the username for the author and committer:
- "user" section in .gitconfig
- "username" passed to maven execution
- default git config (system user and hostname for email)
the default email domain to be used (will be used to create an email from the username passed to maven):
git config --global maven-scm.maildomain mycomp.com
you can also enforce the usage of the username for the author and committer:
git config --global maven-scm.forceUsername true
- Since:
- 1.9
- Author:
- Mark Struberg, Dominik Bartholdi (imod)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
Fields inherited from class org.apache.maven.scm.command.checkin.AbstractCheckInCommand
NAME
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CheckInScmResult
executeCheckInCommand
(ScmProviderRepository repo, ScmFileSet fileSet, String message, ScmVersion version) Methods inherited from class org.apache.maven.scm.command.checkin.AbstractCheckInCommand
executeCommand
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
Field Details
-
GIT_MAVEN_SECTION
- See Also:
-
GIT_MAILDOMAIN
- See Also:
-
GIT_FORCE
- See Also:
-
-
Constructor Details
-
JGitCheckInCommand
public JGitCheckInCommand()
-
-
Method Details
-
executeCheckInCommand
protected CheckInScmResult executeCheckInCommand(ScmProviderRepository repo, ScmFileSet fileSet, String message, ScmVersion version) throws ScmException - Specified by:
executeCheckInCommand
in classAbstractCheckInCommand
- Throws:
ScmException
-