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 |
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 |
---|---|
Ref |
ResetCommand.call() |
Collection<String> |
SubmoduleInitCommand.call() |
CherryPickResult |
CherryPickCommand.call() |
List<Ref> |
ListBranchCommand.call() |
FetchResult |
FetchCommand.call() |
Map<String,String> |
SubmoduleSyncCommand.call() |
Map<String,SubmoduleStatus> |
SubmoduleStatusCommand.call() |
RemoteConfig |
RemoteSetUrlCommand.call() |
Collection<String> |
SubmoduleUpdateCommand.call()
Execute the SubmoduleUpdateCommand command.
|
RevCommit |
CommitCommand.call() |
Collection<SubmoduleDeinitResult> |
SubmoduleDeinitCommand.call() |
PullResult |
PullCommand.call() |
Collection<Ref> |
LsRemoteCommand.call() |
Set<String> |
CleanCommand.call() |
MergeResult |
MergeCommand.call() |
OutputStream |
ArchiveCommand.call() |
Note |
RemoveNoteCommand.call() |
Iterable<RevCommit> |
LogCommand.call() |
Properties |
GarbageCollectCommand.call() |
List<RemoteConfig> |
RemoteListCommand.call() |
ObjectId |
StashApplyCommand.call() |
List<Note> |
ListNotesCommand.call() |
DirCache |
AddCommand.call() |
RevCommit |
StashCreateCommand.call() |
Ref |
CreateBranchCommand.call() |
Collection<RevCommit> |
StashListCommand.call() |
List<String> |
DeleteBranchCommand.call() |
Ref |
TagCommand.call() |
abstract T |
GitCommand.call() |
RebaseResult |
RebaseCommand.call() |
Map<ObjectId,String> |
NameRevCommand.call() |
DirCache |
RmCommand.call() |
Iterable<PushResult> |
PushCommand.call() |
ApplyResult |
ApplyCommand.call() |
Git |
InitCommand.call() |
List<String> |
DeleteTagCommand.call() |
BlameResult |
BlameCommand.call() |
List<DiffEntry> |
DiffCommand.call() |
RemoteConfig |
RemoteAddCommand.call() |
Note |
AddNoteCommand.call() |
Status |
StatusCommand.call() |
ObjectId |
StashDropCommand.call() |
RemoteConfig |
RemoteRemoveCommand.call() |
List<Ref> |
ListTagCommand.call() |
Repository |
SubmoduleAddCommand.call() |
Note |
ShowNoteCommand.call() |
Collection<ReflogEntry> |
ReflogCommand.call() |
Ref |
RenameBranchCommand.call() |
RevCommit |
RevertCommand.call() |
String |
DescribeCommand.call() |
Git |
CloneCommand.call() |
Ref |
CheckoutCommand.call() |
Map<String,Ref> |
LsRemoteCommand.callAsMap()
Same as
LsRemoteCommand.call() , but return Map instead of Collection. |
Properties |
GarbageCollectCommand.getStatistics()
Computes and returns the repository statistics.
|
RevCommit |
RebaseCommand.tryFastForward(RevCommit newCommit)
Check if we can fast-forward and returns the new head if it is possible
|
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 | Method and Description |
---|---|
RevCommit |
RepoCommand.call() |
default byte[] |
RepoCommand.RemoteReader.readFile(String uri,
String ref,
String path)
Deprecated.
|
RepoCommand.RemoteFile |
RepoCommand.RemoteReader.readFileWithMode(String uri,
String ref,
String path)
Read contents and mode (i.e.
|
RepoCommand.RemoteFile |
RepoCommand.DefaultRemoteReader.readFileWithMode(String uri,
String ref,
String path) |
InputStream |
ManifestParser.IncludedFileReader.readIncludeFile(String path)
Read a file from the same base dir of the manifest xml file.
|
ObjectId |
RepoCommand.RemoteReader.sha1(String uri,
String ref)
Read a remote ref sha1.
|
ObjectId |
RepoCommand.DefaultRemoteReader.sha1(String uri,
String ref) |
Copyright © 2019 Eclipse JGit Project. All rights reserved.