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 | 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).
|
Modifier and Type | Method | Description |
---|---|---|
DirCache |
AddCommand.call() |
Executes the
Add command. |
Note |
AddNoteCommand.call() |
|
ApplyResult |
ApplyCommand.call() |
Executes the
ApplyCommand command with all the options and
parameters collected by the setter methods (e.g. |
OutputStream |
ArchiveCommand.call() |
|
BlameResult |
BlameCommand.call() |
Generate a list of lines with information about when the lines were
introduced into the file path.
|
Ref |
CheckoutCommand.call() |
|
CherryPickResult |
CherryPickCommand.call() |
Executes the
Cherry-Pick command with all the options and
parameters collected by the setter methods (e.g. |
Set<String> |
CleanCommand.call() |
Executes the
clean command with all the options and parameters
collected by the setter methods of this class. |
Git |
CloneCommand.call() |
Executes the
Clone command. |
RevCommit |
CommitCommand.call() |
Executes the
commit command with all the options and parameters
collected by the setter methods of this class. |
Ref |
CreateBranchCommand.call() |
|
List<String> |
DeleteBranchCommand.call() |
|
List<String> |
DeleteTagCommand.call() |
|
String |
DescribeCommand.call() |
Describes the specified commit.
|
List<DiffEntry> |
DiffCommand.call() |
Executes the
Diff command with all the options and parameters
collected by the setter methods (e.g. |
FetchResult |
FetchCommand.call() |
Executes the
fetch command with all the options and parameters
collected by the setter methods of this class. |
Properties |
GarbageCollectCommand.call() |
|
abstract T |
GitCommand.call() |
Executes the command
|
Git |
InitCommand.call() |
Executes the
Init command. |
List<Ref> |
ListBranchCommand.call() |
|
List<Note> |
ListNotesCommand.call() |
|
List<Ref> |
ListTagCommand.call() |
|
Iterable<RevCommit> |
LogCommand.call() |
Executes the
Log command with all the options and parameters
collected by the setter methods (e.g. |
Collection<Ref> |
LsRemoteCommand.call() |
Executes the
LsRemote command with all the options and parameters
collected by the setter methods (e.g. |
MergeResult |
MergeCommand.call() |
Executes the
Merge command with all the options and parameters
collected by the setter methods (e.g. |
Map<ObjectId,String> |
NameRevCommand.call() |
|
PullResult |
PullCommand.call() |
Executes the
Pull command with all the options and parameters
collected by the setter methods (e.g. |
Iterable<PushResult> |
PushCommand.call() |
Executes the
push command with all the options and parameters
collected by the setter methods of this class. |
RebaseResult |
RebaseCommand.call() |
Executes the
Rebase command with all the options and parameters
collected by the setter methods of this class. |
Collection<ReflogEntry> |
ReflogCommand.call() |
Run the reflog command
|
Note |
RemoveNoteCommand.call() |
|
Ref |
RenameBranchCommand.call() |
|
Ref |
ResetCommand.call() |
Executes the
Reset command. |
RevCommit |
RevertCommand.call() |
Executes the
revert command with all the options and parameters
collected by the setter methods (e.g. |
DirCache |
RmCommand.call() |
Executes the
Rm command. |
Note |
ShowNoteCommand.call() |
|
ObjectId |
StashApplyCommand.call() |
Apply the changes in a stashed commit to the working directory and index
|
RevCommit |
StashCreateCommand.call() |
Stash the contents on the working directory and index in separate commits
and reset to the current HEAD commit.
|
ObjectId |
StashDropCommand.call() |
Drop the configured entry from the stash reflog and return value of the
stash reference after the drop occurs
|
Collection<RevCommit> |
StashListCommand.call() |
|
Status |
StatusCommand.call() |
Executes the
Status command with all the options and parameters
collected by the setter methods of this class. |
Repository |
SubmoduleAddCommand.call() |
Executes the
SubmoduleAddCommand
The Repository instance returned by this command needs to be
closed by the caller to free resources held by the Repository
instance. |
Collection<String> |
SubmoduleInitCommand.call() |
|
Map<String,SubmoduleStatus> |
SubmoduleStatusCommand.call() |
|
Map<String,String> |
SubmoduleSyncCommand.call() |
|
Collection<String> |
SubmoduleUpdateCommand.call() |
Execute the SubmoduleUpdateCommand command.
|
Ref |
TagCommand.call() |
Executes the
tag command with all the options and parameters
collected by the setter methods of this class. |
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) |
checks if we can fast-forward and returns the new head if it is possible
|
Modifier and Type | Class | Description |
---|---|---|
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 |
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 |
RefNotFoundException |
Thrown when a Ref can not be resolved
|
class |
RejectCommitException |
Exception thrown when a commit is rejected by a hook (either
pre-commit or
commit-msg ). |
class |
StashApplyFailureException |
Thrown from StashApplyCommand when stash apply fails
|
class |
TransportException |
Exception thrown when transport operation failed
|
class |
UnmergedPathsException |
Thrown when branch deletion fails due to unmerged data
|
class |
WrongRepositoryStateException |
Exception thrown when the state of the repository doesn't allow the execution
of a certain command.
|
Modifier and Type | Method | Description |
---|---|---|
RevCommit |
RepoCommand.call() |
|
byte[] |
RepoCommand.DefaultRemoteReader.readFile(String uri,
String ref,
String path) |
|
byte[] |
RepoCommand.RemoteReader.readFile(String uri,
String ref,
String path) |
Read a file from a remote repository.
|
protected byte[] |
RepoCommand.DefaultRemoteReader.readFileFromRepo(Repository repo,
String ref,
String path) |
Read a file from the repository
|
InputStream |
RepoCommand.IncludedFileReader.readIncludeFile(String path) |
Read a file from the same base dir of the manifest xml file.
|
ObjectId |
RepoCommand.DefaultRemoteReader.sha1(String uri,
String ref) |
|
ObjectId |
RepoCommand.RemoteReader.sha1(String uri,
String ref) |
Read a remote ref sha1.
|
Copyright © 2018. All rights reserved.