Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.api.errors |
Exceptions thrown by API commands.
|
org.eclipse.jgit.gitrepo | |
org.eclipse.jgit.pgm |
Modifier and Type | Class and Description |
---|---|
static class |
ArchiveCommand.UnsupportedFormatException
Signals an attempt to use an archival format that ArchiveCommand
doesn't know about (for example due to a typo).
|
static class |
SubmoduleDeinitCommand.NoSuchSubmoduleException
The user tried to deinitialize a submodule that doesn't exist in the
index.
|
Modifier and Type | Method and Description |
---|---|
private RebaseResult |
RebaseCommand.abort(RebaseResult result) |
private void |
RebaseCommand.autoStash() |
private boolean |
RebaseCommand.autoStashApply() |
private java.util.List<RevCommit> |
RebaseCommand.calculatePickList(RevCommit headCommit) |
DirCache |
AddCommand.call() |
Note |
AddNoteCommand.call() |
ApplyResult |
ApplyCommand.call() |
java.io.OutputStream |
ArchiveCommand.call() |
BlameResult |
BlameCommand.call() |
Ref |
CheckoutCommand.call() |
CherryPickResult |
CherryPickCommand.call() |
java.util.Set<java.lang.String> |
CleanCommand.call() |
Git |
CloneCommand.call() |
RevCommit |
CommitCommand.call() |
Ref |
CreateBranchCommand.call() |
java.util.List<java.lang.String> |
DeleteBranchCommand.call() |
java.util.List<java.lang.String> |
DeleteTagCommand.call() |
java.lang.String |
DescribeCommand.call() |
java.util.List<DiffEntry> |
DiffCommand.call() |
FetchResult |
FetchCommand.call() |
java.util.Properties |
GarbageCollectCommand.call() |
abstract T |
GitCommand.call() |
Git |
InitCommand.call() |
java.util.List<Ref> |
ListBranchCommand.call() |
java.util.List<Note> |
ListNotesCommand.call() |
java.util.List<Ref> |
ListTagCommand.call() |
java.lang.Iterable<RevCommit> |
LogCommand.call() |
java.util.Collection<Ref> |
LsRemoteCommand.call() |
MergeResult |
MergeCommand.call() |
java.util.Map<ObjectId,java.lang.String> |
NameRevCommand.call() |
PullResult |
PullCommand.call() |
java.lang.Iterable<PushResult> |
PushCommand.call() |
RebaseResult |
RebaseCommand.call() |
java.util.Collection<ReflogEntry> |
ReflogCommand.call() |
RemoteConfig |
RemoteAddCommand.call() |
java.util.List<RemoteConfig> |
RemoteListCommand.call() |
RemoteConfig |
RemoteRemoveCommand.call() |
RemoteConfig |
RemoteSetUrlCommand.call() |
Note |
RemoveNoteCommand.call() |
Ref |
RenameBranchCommand.call() |
Ref |
ResetCommand.call() |
RevCommit |
RevertCommand.call() |
DirCache |
RmCommand.call() |
Note |
ShowNoteCommand.call() |
ObjectId |
StashApplyCommand.call() |
RevCommit |
StashCreateCommand.call() |
ObjectId |
StashDropCommand.call() |
java.util.Collection<RevCommit> |
StashListCommand.call() |
Status |
StatusCommand.call() |
Repository |
SubmoduleAddCommand.call() |
java.util.Collection<SubmoduleDeinitResult> |
SubmoduleDeinitCommand.call() |
java.util.Collection<java.lang.String> |
SubmoduleInitCommand.call() |
java.util.Map<java.lang.String,SubmoduleStatus> |
SubmoduleStatusCommand.call() |
java.util.Map<java.lang.String,java.lang.String> |
SubmoduleSyncCommand.call() |
java.util.Collection<java.lang.String> |
SubmoduleUpdateCommand.call()
Execute the SubmoduleUpdateCommand command.
|
Ref |
TagCommand.call() |
java.util.Map<java.lang.String,Ref> |
LsRemoteCommand.callAsMap()
Same as
LsRemoteCommand.call() , but return Map instead of Collection. |
private SubmoduleDeinitCommand.SubmoduleDeinitStatus |
SubmoduleDeinitCommand.checkDirty(RevWalk revWalk,
java.lang.String path)
Check if a submodule is dirty.
|
private void |
CloneCommand.checkout(Repository clonedRepo,
FetchResult result) |
private void |
ResetCommand.checkoutIndex(ObjectId commitTree) |
private RebaseResult |
RebaseCommand.cherryPickCommit(RevCommit commitToPick) |
private RebaseResult |
RebaseCommand.cherryPickCommitFlattening(RevCommit commitToPick) |
private RebaseResult |
RebaseCommand.cherryPickCommitPreservingMerges(RevCommit commitToPick) |
private void |
CloneCommand.cloneSubmodules(Repository clonedRepo) |
private RevCommit |
RebaseCommand.continueRebase() |
private RevCommit |
RebaseCommand.doSquashFixup(boolean isSquash,
RevCommit commitToPick,
RebaseTodoLine nextStep,
java.io.File messageFixup,
java.io.File messageSquash) |
private java.util.Map<java.lang.String,Ref> |
LsRemoteCommand.execute() |
private FetchResult |
CloneCommand.fetch(Repository clonedRepo,
URIish u) |
private void |
FetchCommand.fetchSubmodules(FetchResult results) |
private RebaseResult |
RebaseCommand.finishRebase(RevCommit finalHead,
boolean lastStepIsForward) |
private Ref |
StashCreateCommand.getHead() |
private Repository |
SubmoduleUpdateCommand.getOrCloneSubmodule(SubmoduleWalk generator,
java.lang.String url) |
private Ref |
StashDropCommand.getRef() |
private ObjectId |
StashApplyCommand.getStashId() |
java.util.Properties |
GarbageCollectCommand.getStatistics()
Computes and returns the repository statistics.
|
private Repository |
CloneCommand.init() |
private RebaseResult |
RebaseCommand.initFilesAndRewind() |
private RebaseResult |
RebaseCommand.processStep(RebaseTodoLine step,
boolean shouldPick) |
private void |
RebaseCommand.resetSoftToParent() |
private RevCommit |
RebaseCommand.squashIntoPrevious(boolean sequenceContainsSquash,
RebaseTodoLine nextStep) |
RevCommit |
RebaseCommand.tryFastForward(RevCommit newCommit)
Check if we can fast-forward and returns the new head if it is possible
|
private RevCommit |
RebaseCommand.tryFastForward(java.lang.String headName,
RevCommit oldCommit,
RevCommit newCommit) |
Modifier and Type | Class and Description |
---|---|
class |
AbortedByHookException
Exception thrown when a hook returns a process result with a value different
from 0.
|
class |
CanceledException
Exception thrown when an operation was canceled
|
class |
CannotDeleteCurrentBranchException
Thrown when trying to delete a branch which is currently checked out
|
class |
CheckoutConflictException
Exception thrown when a command can't succeed because of unresolved
conflicts.
|
class |
ConcurrentRefUpdateException
Exception thrown when a command wants to update a ref but failed because
another process is accessing (or even also updating) the ref.
|
class |
DetachedHeadException
Exception thrown when a command expected a non-detached
HEAD
reference |
class |
EmptyCommitException
Exception thrown when a newly created commit does not contain any changes
|
class |
FilterFailedException
Exception thrown when the execution of a filter command failed
|
class |
InvalidConfigurationException
Exception thrown when a command fails due to an invalid configuration
|
class |
InvalidMergeHeadsException
Exception thrown when a merge command was called without specifying the
proper amount/type of merge heads.
|
class |
InvalidRebaseStepException
Exception thrown if a rebase step is invalid.
|
class |
InvalidRefNameException
Exception thrown when an invalid Ref name was encountered
|
class |
InvalidRemoteException
Exception thrown when a fetch command was called with an invalid remote
|
class |
InvalidTagNameException
Exception thrown when a tag command was called with an invalid tag name (or
null), such as bad~tag.
|
class |
MultipleParentsNotAllowedException
The commit to be cherry-pick'ed did not have exactly one parent
|
class |
NoFilepatternException
Exception thrown when the options given to a command don't include a
file pattern which is mandatory for processing.
|
class |
NoHeadException
Exception thrown when a command expected the
HEAD reference to exist
but couldn't find such a reference |
class |
NoMessageException
Exception thrown when the options given to a command don't include a
specification of a message text (e.g.
|
class |
NotMergedException
Thrown when branch deletion fails due to unmerged data
|
class |
PatchApplyException
Exception thrown when applying a patch fails
|
class |
PatchFormatException
Exception thrown when applying a patch fails due to an invalid format
|
class |
RefAlreadyExistsException
Thrown when trying to create a
Ref with the same
name as an existing one |
class |
RefNotAdvertisedException
Thrown when a ref is not found in advertised refs
|
class |
RefNotFoundException
Thrown when a Ref can not be resolved
|
class |
StashApplyFailureException
Thrown from StashApplyCommand when stash apply fails
|
class |
TooLargeObjectInPackException
Exception thrown when PackParser finds an object larger than a predefined
limit
|
class |
TooLargePackException
Exception thrown when the server rejected a too large pack
|
class |
TransportException
Exception thrown when transport operation failed
|
class |
UnmergedPathsException
Thrown when branch deletion fails due to unmerged data
|
class |
UnsupportedSigningFormatException
Exception thrown when the configured gpg.format is not supported.
|
class |
WrongRepositoryStateException
Exception thrown when the state of the repository doesn't allow the execution
of a certain command.
|
Modifier and Type | Class and Description |
---|---|
private static class |
RepoCommand.ManifestErrorException |
private static class |
RepoCommand.RemoteUnavailableException |
Modifier and Type | Method and Description |
---|---|
private void |
RepoCommand.addSubmodule(java.lang.String name,
java.lang.String url,
java.lang.String path,
java.lang.String revision,
java.util.List<RepoProject.CopyFile> copyfiles,
java.util.List<RepoProject.LinkFile> linkfiles,
Git git) |
RevCommit |
RepoCommand.call() |
default byte[] |
RepoCommand.RemoteReader.readFile(java.lang.String uri,
java.lang.String ref,
java.lang.String path)
Deprecated.
|
RepoCommand.RemoteFile |
RepoCommand.RemoteReader.readFileWithMode(java.lang.String uri,
java.lang.String ref,
java.lang.String path)
Read contents and mode (i.e.
|
RepoCommand.RemoteFile |
RepoCommand.DefaultRemoteReader.readFileWithMode(java.lang.String uri,
java.lang.String ref,
java.lang.String path) |
java.io.InputStream |
ManifestParser.IncludedFileReader.readIncludeFile(java.lang.String path)
Read a file from the same base dir of the manifest xml file.
|
ObjectId |
RepoCommand.RemoteReader.sha1(java.lang.String uri,
java.lang.String ref)
Read a remote ref sha1.
|
ObjectId |
RepoCommand.DefaultRemoteReader.sha1(java.lang.String uri,
java.lang.String ref) |
Modifier and Type | Method and Description |
---|---|
private void |
Branch.list() |