Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.attributes |
Support for reading .gitattributes.
|
org.eclipse.jgit.blame |
Computing blame/annotate information of files.
|
org.eclipse.jgit.errors |
Exceptions thrown by lower-level JGit APIs.
|
org.eclipse.jgit.gitrepo | |
org.eclipse.jgit.internal.fsck |
Git fsck support.
|
org.eclipse.jgit.internal.ketch |
Distributed consensus system built on Git.
|
org.eclipse.jgit.internal.storage.dfs |
Distributed file system based repository storage.
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.pack |
Reading/writing Git pack files.
|
org.eclipse.jgit.internal.storage.reftable | |
org.eclipse.jgit.internal.storage.reftree | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.merge |
Content and commit history merge algorithms.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.storage.file | |
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
PullCommand |
PullCommand.setFastForward(MergeCommand.FastForwardMode fastForwardMode)
Set the fast forward mode.
|
MergeCommand |
MergeCommand.setFastForward(MergeCommand.FastForwardMode fastForwardMode)
Sets the fast forward mode.
|
PullCommand |
PullCommand.setRecurseSubmodules(SubmoduleConfig.FetchRecurseSubmodulesMode recurse)
Set the mode to be used for recursing into submodules.
|
FetchCommand |
FetchCommand.setRecurseSubmodules(SubmoduleConfig.FetchRecurseSubmodulesMode recurse)
Set the mode to be used for recursing into submodules.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AttributesHandler.mergeAttributes(AttributesNode node,
String entryPath,
boolean isDirectory,
Attributes result)
Merges the matching node attributes for an entry path.
|
Modifier and Type | Method and Description |
---|---|
RenameDetector |
BlameGenerator.getRenameDetector()
Obtain the RenameDetector, allowing the application to configure its
settings for rename score and breaking behavior.
|
Modifier and Type | Method and Description |
---|---|
CorruptPackIndexException.ErrorType |
CorruptPackIndexException.getErrorType()
Specific the reason of the corrupt index file.
|
ObjectChecker.ErrorType |
CorruptObjectException.getErrorType()
Specific error condition identified by
ObjectChecker . |
Modifier and Type | Method and Description |
---|---|
ObjectId |
RepoCommand.RemoteReader.sha1(String uri,
String ref)
Read a remote ref sha1.
|
Modifier and Type | Method and Description |
---|---|
ObjectChecker.ErrorType |
FsckError.CorruptObject.getErrorType() |
Modifier and Type | Method and Description |
---|---|
ObjectId |
ReplicaSnapshot.getAccepted()
Get last known Git commit at
refs/txn/accepted |
PersonIdent |
Proposal.getAuthor()
Get optional author of the proposal.
|
LogIndex |
LeaderSnapshot.getCommitted()
Get state the leader knows is committed on a majority of participant
replicas
|
ObjectId |
ReplicaSnapshot.getCommitted()
Get last known Git commit at
refs/txn/committed |
String |
ReplicaSnapshot.getErrorMessage()
Get error message
|
Throwable |
ReplicaPushRequest.getException()
Get exception thrown, if any.
|
LogIndex |
LeaderSnapshot.getHead()
Get end of the leader's log
|
String |
Proposal.getMessage()
Get optional message for the commit log of the RefTree.
|
PushCertificate |
Proposal.getPushCertificate()
Get optional certificate signing the references.
|
Map<String,Ref> |
ReplicaFetchRequest.getRefs()
Get remote references, usually from the advertisement.
|
Map<String,Ref> |
ReplicaPushRequest.getRefs()
Get remote references, usually from the advertisement.
|
protected RemoteConfig |
RemoteGitReplica.getRemoteConfig()
Get optional configuration describing how to contact the peer.
|
Date |
ReplicaSnapshot.getRetryAt()
Get when the leader will retry communication with the offline or lagging
replica
|
String |
KetchSystem.newLeaderTag()
Construct a random tag to identify a candidate during leader election.
|
Modifier and Type | Method and Description |
---|---|
List<ReceiveCommand> |
StageBuilder.makeStageList(Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
List<ReceiveCommand> |
StageBuilder.makeStageList(Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
Proposal |
Proposal.setAuthor(PersonIdent who)
Set the author for the proposal.
|
void |
ReplicaPushRequest.setException(Repository repo,
Throwable err)
Mark the request as crashing with a communication error.
|
Proposal |
Proposal.setMessage(String msg)
Set the message to appear in the commit log of the RefTree.
|
Proposal |
Proposal.setPushCertificate(PushCertificate cert)
Set the push certificate signing the references.
|
Constructor and Description |
---|
RemoteGitReplica(KetchLeader leader,
String name,
URIish uri,
ReplicaConfig cfg,
RemoteConfig rc)
Configure a new remote.
|
Modifier and Type | Method and Description |
---|---|
String |
InMemoryRepository.getGitwebDescription()
Read the
GIT_DIR/description file for gitweb. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DfsReftableDatabase.compareAndPut(Ref oldRef,
Ref newRef)
Compare a reference, and put if it matches.
|
static DfsStreamKey |
DfsStreamKey.of(DfsRepositoryDescription repo,
String name,
PackExt ext)
Create a
DfsStreamKey |
void |
InMemoryRepository.setGitwebDescription(String d)
Set the
GIT_DIR/description file for gitweb. |
Constructor and Description |
---|
DfsStreamKey(int hash,
PackExt ext)
Constructor for DfsStreamKey.
|
Modifier and Type | Method and Description |
---|---|
String |
FileRepository.getGitwebDescription()
Read the
GIT_DIR/description file for gitweb. |
Modifier and Type | Method and Description |
---|---|
void |
FileRepository.setGitwebDescription(String description)
Set the
GIT_DIR/description file for gitweb. |
Constructor and Description |
---|
PackWriter(PackConfig config,
ObjectReader reader,
PackStatistics.Accumulator statsAccumulator)
Create writer with a specified configuration.
|
Modifier and Type | Method and Description |
---|---|
Ref |
Reftable.exactRef(String refName)
Lookup a reference, or null if not found.
|
Ref |
Reftable.resolve(Ref symref)
Resolve a symbolic reference to populate its value.
|
Modifier and Type | Method and Description |
---|---|
void |
ReftableWriter.writeLog(String ref,
long updateIndex,
PersonIdent who,
ObjectId oldId,
ObjectId newId,
String message)
Write one reflog entry to the reftable.
|
Modifier and Type | Method and Description |
---|---|
Ref |
RefTree.exactRef(ObjectReader reader,
String name)
Read one reference.
|
String |
Command.getMessage()
Get optional message explaining command failure.
|
Ref |
Command.getNewRef()
New peeled reference.
|
Ref |
Command.getOldRef()
Old peeled reference.
|
String |
RefTreeDatabase.getTxnNamespace()
Get namespace used by bootstrap layer.
|
Modifier and Type | Method and Description |
---|---|
static void |
Command.abort(Iterable<Command> commands,
String why)
Set unprocessed commands as failed due to transaction aborted.
|
void |
Command.setResult(ReceiveCommand.Result result,
String why)
Set the result of this command.
|
Constructor and Description |
---|
Command(Ref oldRef,
Ref newRef)
Create a command to create, update or delete a reference.
|
Command(Ref oldRef,
Ref newRef)
Create a command to create, update or delete a reference.
|
Modifier and Type | Method and Description |
---|---|
Ref |
Repository.exactRef(String name)
Get a ref by name.
|
Ref |
RefDatabase.exactRef(String name)
Read a single reference.
|
static Ref |
RefDatabase.findRef(Map<String,Ref> map,
String name)
Try to find the specified name in the ref map using
RefDatabase.SEARCH_PATH . |
Ref |
Repository.findRef(String name)
Search for a ref by (possibly abbreviated) name.
|
Ref |
RefDatabase.firstExactRef(String... refs)
Find the first named reference.
|
String |
Repository.getBranch()
Get the short name of the current branch that
HEAD points to. |
ObjectInserter |
ObjectReader.getCreatedFromInserter()
Get the
ObjectInserter from which this
reader was created using inserter.newReader() |
ObjectInserter |
ObjectReader.Filter.getCreatedFromInserter() |
String |
Repository.getFullBranch()
Get the name of the reference that
HEAD points to. |
String |
Repository.getGitwebDescription()
Read the
GIT_DIR/description file for gitweb. |
ObjectId |
SymbolicRef.getObjectId()
Cached value of this ref.
|
ObjectId |
ObjectIdRef.getObjectId()
Cached value of this ref.
|
ObjectId |
Ref.getObjectId()
Cached value of this ref.
|
ObjectId |
SymbolicRef.getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
ObjectId |
ObjectIdRef.Unpeeled.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledNonTag.getPeeledObjectId() |
ObjectId |
Ref.getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
List<String> |
BatchRefUpdate.getPushOptions()
Gets the list of option strings associated with this update.
|
abstract Ref |
RefDatabase.getRef(String name)
Read a single reference.
|
String |
BatchRefUpdate.getRefLogMessage()
Get the message to include in the reflog.
|
abstract ReflogReader |
Repository.getReflogReader(String refName)
Get the reflog reader
|
String |
Repository.getRemoteName(String refName)
Get remote name
|
BlobObjectChecker |
ObjectChecker.newBlobObjectChecker()
Create a new
BlobObjectChecker . |
static ObjectId |
ObjectIdSerializer.read(InputStream in)
Read a possibly null
ObjectId from the stream. |
ObjectId |
Repository.readCherryPickHead()
Return the information stored in the file $GIT_DIR/CHERRY_PICK_HEAD.
|
String |
Repository.readCommitEditMsg()
Return the information stored in the file $GIT_DIR/COMMIT_EDITMSG.
|
protected byte[] |
Config.readIncludedConfig(String relPath)
Read the included config from the specified (possibly) relative path
|
String |
Repository.readMergeCommitMsg()
Return the information stored in the file $GIT_DIR/MERGE_MSG.
|
List<ObjectId> |
Repository.readMergeHeads()
Return the information stored in the file $GIT_DIR/MERGE_HEAD.
|
ObjectId |
Repository.readOrigHead()
Return the information stored in the file $GIT_DIR/ORIG_HEAD.
|
ObjectId |
Repository.readRevertHead()
Return the information stored in the file $GIT_DIR/REVERT_HEAD.
|
String |
Repository.readSquashCommitMsg()
Return the information stored in the file $GIT_DIR/SQUASH_MSG.
|
ObjectId |
Repository.resolve(String revstr)
Parse a git revision string and return an object id.
|
String |
Repository.shortenRemoteBranchName(String refName)
Get a shortened more user friendly remote tracking branch name
|
String |
Repository.simplify(String revstr)
Simplify an expression, but unlike
Repository.resolve(String) it will not
resolve a branch passed or resulting from the expression, such as @{-}. |
Modifier and Type | Method and Description |
---|---|
void |
ObjectChecker.check(AnyObjectId id,
int objType,
byte[] raw)
Check an object for parsing errors.
|
void |
ObjectChecker.checkCommit(AnyObjectId id,
byte[] raw)
Check a commit for errors.
|
void |
ObjectChecker.checkTag(AnyObjectId id,
byte[] raw)
Check an annotated tag for errors.
|
void |
ObjectChecker.checkTree(AnyObjectId id,
byte[] raw)
Check a canonical formatted tree for errors.
|
void |
Repository.setGitwebDescription(String description)
Set the
GIT_DIR/description file for gitweb. |
ObjectChecker |
ObjectChecker.setIgnore(Set<ObjectChecker.ErrorType> ids)
Configure error types to be ignored across all objects.
|
ObjectChecker |
ObjectChecker.setSkipList(ObjectIdSet objects)
Enable accepting specific malformed (but not horribly broken) objects.
|
static void |
ObjectIdSerializer.write(OutputStream out,
AnyObjectId id)
Write a possibly null
ObjectId to the stream, using markers to
differentiate null and non-null instances. |
Constructor and Description |
---|
ObjectIdRef(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
Merger.db
The repository this merger operates on.
|
Modifier and Type | Method and Description |
---|---|
Repository |
Merger.getRepository()
Get the repository this merger operates on.
|
Modifier and Type | Method and Description |
---|---|
String |
RevCommit.getEncodingName()
Determine the encoding of the commit message buffer.
|
byte[] |
RevCommit.getRawGpgSignature()
Parse the gpg signature from the raw buffer.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
FileBasedConfig.readIncludedConfig(String relPath)
Read the included config from the specified (possibly) relative path
|
Modifier and Type | Method and Description |
---|---|
String |
ReceiveCommand.getNewSymref()
Get requested new target for a symbolic reference.
|
String |
ReceiveCommand.getOldSymref()
Get expected old target for a symbolic reference.
|
List<String> |
ReceivePack.getPushOptions()
Gets an unmodifiable view of the option strings associated with the push.
|
ReceivedPackStatistics |
BaseReceivePack.getReceivedPackStatistics()
Returns the statistics on the received pack if available.
|
String |
ReceiveCommand.getRefLogMessage()
Get the message to include in the reflog.
|
Boolean |
ReceiveCommand.isForceRefLog()
Check whether the reflog should be written regardless of repo defaults.
|
ObjectChecker |
TransferConfig.newObjectChecker()
Create checker to verify fetched objects
|
ObjectChecker |
TransferConfig.newReceiveObjectChecker()
Create checker to verify objects pushed into this repository
|
Modifier and Type | Method and Description |
---|---|
static ReceiveCommand |
ReceiveCommand.link(String oldTarget,
String newTarget,
String name)
Create a command to switch a symbolic reference's target.
|
void |
UploadPack.sendAdvertisedRefs(RefAdvertiser adv,
String serviceName)
Generate an advertisement of available refs and capabilities.
|
void |
ReceivePack.setPushOptions(List<String> options)
Set the push options supplied by the client.
|
Modifier and Type | Method and Description |
---|---|
CoreConfig.EolStreamType |
TreeWalk.getEolStreamType(TreeWalk.OperationType opType)
Get the EOL stream type of the current entry using the config and
TreeWalk.getAttributes() . |
Modifier and Type | Method and Description |
---|---|
static TreeWalk |
TreeWalk.forPath(Repository repo,
ObjectReader reader,
String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
Constructor and Description |
---|
NameConflictTreeWalk(Repository repo,
ObjectReader or)
Create a new tree walker for a given repository.
|
TreeWalk(Repository repo,
ObjectReader or)
Create a new tree walker for a given repository.
|
Modifier and Type | Method and Description |
---|---|
LfsFactory.LfsInstallCommand |
LfsFactory.getInstallCommand()
Retrieve an
LfsFactory.LfsInstallCommand which can be used to enable LFS
support (if available) either per repository or for the user. |
PrePushHook |
LfsFactory.getPrePushHook(Repository repo,
PrintStream outputStream)
Retrieve a pre-push hook to be applied.
|
static String |
RawParseUtils.parseEncodingName(byte[] b)
Parse the "encoding " header as a string.
|
protected static String |
FS.readPipe(File dir,
String[] command,
String encoding)
Execute a command and return a single line of output as a String
|
protected static String |
FS.readPipe(File dir,
String[] command,
String encoding,
Map<String,String> env)
Execute a command and return a single line of output as a String
|
Modifier and Type | Method and Description |
---|---|
static String |
SshSupport.runSshCommand(URIish sshUri,
CredentialsProvider provider,
FS fs,
String command,
int timeout)
Utility to execute a remote SSH command and read the first line of
output.
|
Copyright © 2018 Eclipse JGit Project. All rights reserved.