Uses of Class
org.eclipse.jgit.api.CommitCommand
Packages that use CommitCommand
-
Uses of CommitCommand in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api that return CommitCommandModifier and TypeMethodDescriptionGit.commit()
Return a command object to execute aCommit
commandCommitCommand.setAll
(boolean all) If set to true the Commit command automatically stages files that have been modified and deleted, but new files not known by the repository are not affected.CommitCommand.setAllowEmpty
(boolean allowEmpty) Set whether to allow to create an empty commitCommitCommand.setAmend
(boolean amend) Used to amend the tip of the current branch.Sets the author for thiscommit
.CommitCommand.setAuthor
(PersonIdent author) Sets the author for thiscommit
.CommitCommand.setCleanupMode
(CommitConfig.CleanupMode mode) Sets theCommitConfig.CleanupMode
to apply to the commit message.CommitCommand.setCommentCharacter
(Character commentChar) Sets the comment character to apply when cleaning a commit message.CommitCommand.setCommitter
(String name, String email) Sets the committer for thiscommit
.CommitCommand.setCommitter
(PersonIdent committer) Sets the committer for thiscommit
.CommitCommand.setCredentialsProvider
(CredentialsProvider credentialsProvider) Sets aCredentialsProvider
CommitCommand.setDefaultClean
(boolean strip) Sets the default clean mode ifsetCleanupMode(CleanupMode.DEFAULT)
is set and git configcommit.cleanup = default
or is not set.CommitCommand.setGpgConfig
(GpgConfig config) Sets an externalGpgConfig
to use.CommitCommand.setGpgSigner
(GpgSigner signer) Sets theGpgSigner
to use if the commit is to be signed.CommitCommand.setHookErrorStream
(PrintStream hookStdErr) Set the error stream for all hook scripts executed by this command (pre-commit, commit-msg, post-commit).CommitCommand.setHookErrorStream
(String hookName, PrintStream hookStdErr) Set the error stream for a selected hook script executed by this command (pre-commit, commit-msg, post-commit).CommitCommand.setHookOutputStream
(PrintStream hookStdOut) Set the output stream for all hook scripts executed by this command (pre-commit, commit-msg, post-commit).CommitCommand.setHookOutputStream
(String hookName, PrintStream hookStdOut) Set the output stream for a selected hook script executed by this command (pre-commit, commit-msg, post-commit).CommitCommand.setInsertChangeId
(boolean insertChangeId) If set to true a change id will be inserted into the commit message An existing change id is not replaced.CommitCommand.setMessage
(String message) Set the commit messageCommitCommand.setNoVerify
(boolean noVerify) Sets thenoVerify
option on this commit command.Commit dedicated path only.CommitCommand.setReflogComment
(String reflogComment) Override the message written to the reflogSets whether the commit should be signed.CommitCommand.setSigningKey
(String signingKey) Sets the signing key