Class JGitCheckInCommand

  • All Implemented Interfaces:
    Command, GitCommand, CustomizableSshSessionFactoryCommand

    public class JGitCheckInCommand
    extends AbstractCheckInCommand
    implements GitCommand, CustomizableSshSessionFactoryCommand
    This provider uses the following strategy to discover the committer and author name/mail for a commit:
    1. "user" section in .gitconfig
    2. "username" passed to maven execution
    3. default git config (system user and hostname for email)
    the "maven-scm" config can be configured like this:
    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)