Package org.eclipse.jgit.api
High-level API commands (the porcelain of JGit).
-
Interface Summary Interface Description ArchiveCommand.Format<T extends java.io.Closeable> Archival format.RebaseCommand.InteractiveHandler Allows configure rebase interactive process and modify commit messageTransportConfigCallback Receives a callback allowing type-specific configuration to be set on the Transport instance after it's been created. -
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 commandRemoveNoteCommand 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.SubmoduleInitCommand 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. -
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.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 statusResetCommand.ResetType Kind of reset -
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).