Package org.eclipse.jgit.api
High-level API commands (the porcelain of JGit).
-
Interface Summary Interface Description ArchiveCommand.Format<T extends Closeable> Archival format.CloneCommand.Callback Callback for status of clone operation.FetchCommand.Callback Callback for status of fetch operation.RebaseCommand.InteractiveHandler Allows to configure the interactive rebase process steps and to modify commit messages.RebaseCommand.InteractiveHandler2 ExtendsRebaseCommand.InteractiveHandler
with an enhanced callback for editing commit messages.RebaseCommand.InteractiveHandler2.ModifyResult Describes the result of editing a commit message: the new message, and how it should be cleaned.TransportConfigCallback Receives a callback allowing type-specific configuration to be set on the Transport instance after it's been created.VerificationResult AVerificationResult
describes the outcome of a signature verification. -
Class Summary Class Description AddCommand A class used to execute aAdd
command.AddNoteCommand Add object notes.ApplyCommand Apply a patch to files and/or to the index.ApplyResult Encapsulates the result of aApplyCommand
ArchiveCommand Create an archive of files from a named tree.BlameCommand Blame command for building aBlameResult
for a file path.CheckoutCommand Checkout a branch to the working tree.CheckoutResult Encapsulates the result of aCheckoutCommand
CherryPickCommand A class used to execute acherry-pick
command.CherryPickResult Encapsulates the result of aCherryPickCommand
.CleanCommand Remove untracked files from the working treeCloneCommand Clone a repository into a new working directoryCommitCommand A class used to execute aCommit
command.CreateBranchCommand Used to create a local branch.DeleteBranchCommand Used to delete one or several branches.DeleteTagCommand Used to delete one or several tags.DescribeCommand Given a commit, show the most recent tag that is reachable from a commit.DiffCommand Show changes between commits, commit and working tree, etc.FetchCommand A class used to execute aFetch
command.GarbageCollectCommand A class used to execute agc
command.Git Offers a "GitPorcelain"-like API to interact with a git repository.GitCommand<T> Common superclass of all commands in the packageorg.eclipse.jgit.api
InitCommand Create an empty git repository or reinitalize an existing oneListBranchCommand Used to obtain a list of branches.ListNotesCommand List object notes.ListTagCommand Used to obtain a list of tags.LogCommand A class used to execute aLog
command.LsRemoteCommand The ls-remote commandMergeCommand A class used to execute aMerge
command.MergeResult Encapsulates the result of aMergeCommand
.NameRevCommand Command to find human-readable names of revisions.PullCommand The Pull commandPullResult Encapsulates the result of aPullCommand
PushCommand A class used to execute aPush
command.RebaseCommand A class used to execute aRebase
command.RebaseResult The result of aRebaseCommand
executionReflogCommand The reflog commandRemoteAddCommand Used to add a new remote.RemoteListCommand Used to obtain the list of remotes.RemoteRemoveCommand Used to remove an existing remote.RemoteSetUrlCommand Used to change the URL of a remote.RemoveNoteCommand Remove object notes.RenameBranchCommand Used to rename branches.ResetCommand A class used to execute aReset
command.RevertCommand A class used to execute arevert
command.RmCommand Remove files from the index and working directory (or optionally only from the index).ShowNoteCommand Show an object note.StashApplyCommand Command class to apply a stashed commit.StashCreateCommand Command class to stash changes in the working directory and index in a commit.StashDropCommand Command class to delete a stashed commit referenceStashListCommand Command class to list the stashed commits in a repository.Status A class telling where the working-tree, the index and the current HEAD differ from each other.StatusCommand A class used to execute aStatus
command.SubmoduleAddCommand A class used to execute a submodule add command.SubmoduleDeinitCommand A class used to execute a submodule deinit command.SubmoduleDeinitResult The result of a submodule deinit command for a particular pathSubmoduleInitCommand A class used to execute a submodule init command.SubmoduleStatusCommand A class used to execute a submodule status command.SubmoduleSyncCommand A class used to execute a submodule sync command.SubmoduleUpdateCommand A class used to execute a submodule update command.TagCommand Create/update an annotated tag object or a simple unannotated tagTransportCommand<C extends GitCommand,T> Base class for commands that use aTransport
during execution.VerifySignatureCommand A command to verify GPG signatures on tags or commits. -
Enum Summary Enum Description CheckoutCommand.Stage Stage to check out, seeCheckoutCommand.setStage(Stage)
.CheckoutResult.Status The statusCherryPickResult.CherryPickStatus The cherry-pick statusCreateBranchCommand.SetupUpstreamMode The modes available for setting up the upstream configuration (corresponding to the --set-upstream, --track, --no-track optionsListBranchCommand.ListMode The modes available for listing branches (corresponding to the -r and -a options)MergeCommand.ConflictStyle Values for the "merge.conflictStyle" git config.MergeCommand.FastForwardMode The modes available for fast forward merges corresponding to the--ff
,--no-ff
and--ff-only
options underbranch.<name>.mergeoptions
.MergeCommand.FastForwardMode.Merge The modes available for fast forward merges corresponding to the options undermerge.ff
.MergeResult.MergeStatus The status the merge resulted in.RebaseCommand.Operation The available operationsRebaseResult.Status The overall statusRemoteSetUrlCommand.UriType The available URI types for the remote.ResetCommand.ResetType Kind of resetSubmoduleDeinitCommand.SubmoduleDeinitStatus The effect of a submodule deinit command for a given pathVerifySignatureCommand.VerifyMode Describes what kind of objects shall be handled by aVerifySignatureCommand
. -
Exception Summary Exception Description ArchiveCommand.UnsupportedFormatException Signals an attempt to use an archival format that ArchiveCommand doesn't know about (for example due to a typo).SubmoduleDeinitCommand.NoSuchSubmoduleException The user tried to deinitialize a submodule that doesn't exist in the index.