Package | Description |
---|---|
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.reftable | |
org.eclipse.jgit.internal.storage.reftree | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
Modifier and Type | Field and Description |
---|---|
(package private) ReceiveCommand |
RemoteGitReplica.RemoteCommand.cmd |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ReceiveCommand> |
ReplicaPushRequest.commands |
private java.util.Map<java.lang.String,ReceiveCommand> |
KetchReplica.running |
(package private) java.util.List<ReceiveCommand> |
Round.stageCommands |
private java.util.Map<ObjectId,java.util.List<ReceiveCommand>> |
KetchReplica.staged |
private java.util.Map<java.lang.String,ReceiveCommand> |
KetchReplica.waiting |
Modifier and Type | Method and Description |
---|---|
private static ReceiveCommand |
KetchReplica.copy(ReceiveCommand c) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ReceiveCommand> |
ReplicaPushRequest.getCommands()
Get commands to be executed, and their results.
|
java.util.List<ReceiveCommand> |
StageBuilder.makeStageList(Repository git,
ObjectId oldTree,
ObjectId newTree)
Compare two RefTrees and return commands to stage new objects.
|
private java.util.List<ReceiveCommand> |
ProposalRound.makeStageList(Repository git,
ObjectInserter inserter) |
java.util.List<ReceiveCommand> |
StageBuilder.makeStageList(java.util.Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
protected java.util.Collection<ReceiveCommand> |
KetchReplica.prepareCommit(Repository git,
java.util.Map<java.lang.String,Ref> current,
ObjectId committed)
Build a list of commands to commit
KetchReplica.CommitMethod.ALL_REFS . |
Modifier and Type | Method and Description |
---|---|
(package private) KetchReplica.State |
LagCheck.check(ObjectId acceptId,
ReceiveCommand acceptCmd) |
private static void |
LocalReplica.checkFailed(java.util.List<java.lang.String> failed,
ReceiveCommand cmd) |
private static ReceiveCommand |
KetchReplica.copy(ReceiveCommand c) |
private static ObjectId |
KetchReplica.readId(ReplicaPushRequest req,
ReceiveCommand cmd) |
private void |
KetchReplica.updateView(ReplicaPushRequest req,
ObjectId acceptId,
ReceiveCommand commitCmd) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Command> |
Proposal.asCommandList(RevWalk rw,
java.util.Collection<ReceiveCommand> cmds) |
private static java.util.List<RemoteGitReplica.RemoteCommand> |
RemoteGitReplica.asUpdateList(java.util.Collection<ReceiveCommand> cmds) |
private static void |
KetchReplica.delete(java.util.List<ReceiveCommand> cmds,
java.util.List<ReceiveCommand> createCmds) |
private static void |
KetchReplica.delete(java.util.List<ReceiveCommand> cmds,
java.util.List<ReceiveCommand> createCmds) |
private boolean |
LocalReplica.isOnlyTxnNamespace(java.util.Collection<ReceiveCommand> cmdList) |
void |
KetchPreReceive.onPreReceive(ReceivePack rp,
java.util.Collection<ReceiveCommand> cmds)
Invoked just before commands are executed.
|
private void |
KetchReplica.prepareTxnCommitted(java.util.List<ReceiveCommand> cmds,
ObjectId committed) |
private void |
StageBuilder.reduceObjects(java.util.List<ReceiveCommand> cmds,
java.util.List<RevCommit> commits,
Repository git,
java.util.Set<ObjectId> newObjs) |
private void |
KetchReplica.removeStaged(java.util.List<ReceiveCommand> cmds,
ObjectId committed) |
private void |
StageBuilder.stage(java.util.List<ReceiveCommand> cmds,
ObjectId id) |
Constructor and Description |
---|
RemoteCommand(ReceiveCommand cmd) |
Constructor and Description |
---|
Proposal(RevWalk rw,
java.util.Collection<ReceiveCommand> cmds)
Create a proposal from a collection of received commands.
|
ReplicaPushRequest(KetchReplica replica,
java.util.Collection<ReceiveCommand> commands)
Construct a new push request for a replica.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DfsReftableBatchRefUpdate.applyUpdates(java.util.List<Ref> newRefs,
java.util.List<ReceiveCommand> pending) |
Modifier and Type | Method and Description |
---|---|
private static void |
PackedBatchRefUpdate.lockFailure(ReceiveCommand cmd,
java.util.List<ReceiveCommand> commands) |
private static Ref |
PackedBatchRefUpdate.peeledRef(RevWalk walk,
ReceiveCommand cmd) |
private static void |
PackedBatchRefUpdate.reject(ReceiveCommand cmd,
ReceiveCommand.Result result,
java.util.List<ReceiveCommand> commands) |
private static void |
PackedBatchRefUpdate.reject(ReceiveCommand cmd,
ReceiveCommand.Result result,
java.lang.String why,
java.util.List<ReceiveCommand> commands) |
private java.lang.String |
PackedBatchRefUpdate.toResultString(ReceiveCommand cmd) |
Modifier and Type | Method and Description |
---|---|
protected void |
FileReftableDatabase.FileReftableBatchRefUpdate.applyUpdates(java.util.List<Ref> newRefs,
java.util.List<ReceiveCommand> pending) |
private static RefList<Ref> |
PackedBatchRefUpdate.applyUpdates(RevWalk walk,
RefList<Ref> refs,
java.util.List<ReceiveCommand> commands) |
private boolean |
PackedBatchRefUpdate.checkConflictingNames(java.util.List<ReceiveCommand> commands) |
private boolean |
PackedBatchRefUpdate.checkNonFastForwards(RevWalk walk,
java.util.List<ReceiveCommand> commands) |
private boolean |
PackedBatchRefUpdate.checkObjectExistence(RevWalk walk,
java.util.List<ReceiveCommand> commands) |
private static boolean |
PackedBatchRefUpdate.containsSymrefs(java.util.List<ReceiveCommand> commands) |
private static void |
PackedBatchRefUpdate.lockFailure(ReceiveCommand cmd,
java.util.List<ReceiveCommand> commands) |
private java.util.Map<java.lang.String,LockFile> |
PackedBatchRefUpdate.lockLooseRefs(java.util.List<ReceiveCommand> commands)
Lock loose refs corresponding to a list of commands.
|
private static void |
PackedBatchRefUpdate.reject(ReceiveCommand cmd,
ReceiveCommand.Result result,
java.util.List<ReceiveCommand> commands) |
private static void |
PackedBatchRefUpdate.reject(ReceiveCommand cmd,
ReceiveCommand.Result result,
java.lang.String why,
java.util.List<ReceiveCommand> commands) |
private void |
PackedBatchRefUpdate.writeReflog(java.util.List<ReceiveCommand> commands) |
Modifier and Type | Method and Description |
---|---|
static ReceiveCommand |
ReftableDatabase.toCommand(Ref oldRef,
Ref newRef) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ReceiveCommand> |
ReftableBatchRefUpdate.getPending() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
ReftableBatchRefUpdate.matchOld(ReceiveCommand cmd,
Ref ref) |
private java.lang.String |
ReftableBatchRefUpdate.toResultString(ReceiveCommand cmd) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
ReftableBatchRefUpdate.applyUpdates(java.util.List<Ref> newRefs,
java.util.List<ReceiveCommand> pending)
Implements the storage-specific part of the update.
|
private boolean |
ReftableBatchRefUpdate.checkConflicting(java.util.List<ReceiveCommand> pending) |
private boolean |
ReftableBatchRefUpdate.checkExpected(java.util.List<ReceiveCommand> pending) |
private boolean |
ReftableBatchRefUpdate.checkNonFastForwards(RevWalk rw,
java.util.List<ReceiveCommand> pending) |
private boolean |
ReftableBatchRefUpdate.checkObjectExistence(RevWalk rw,
java.util.List<ReceiveCommand> pending) |
private static java.util.List<Ref> |
ReftableBatchRefUpdate.toNewRefs(RevWalk rw,
java.util.List<ReceiveCommand> pending) |
protected void |
ReftableBatchRefUpdate.write(ReftableWriter writer,
java.util.List<Ref> newRefs,
java.util.List<ReceiveCommand> pending)
Writes the refs to the writer, and calls finish.
|
private void |
ReftableBatchRefUpdate.writeLog(ReftableWriter writer,
long updateIndex,
java.util.List<ReceiveCommand> pending) |
Modifier and Type | Field and Description |
---|---|
private ReceiveCommand |
Command.cmd |
Modifier and Type | Method and Description |
---|---|
private void |
RefTreeBatch.updateBootstrap(RevWalk rw,
ReceiveCommand commit) |
Constructor and Description |
---|
Command(RevWalk rw,
ReceiveCommand cmd)
Construct a RefTree command wrapped around a ReceiveCommand.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ReceiveCommand> |
BatchRefUpdate.commands
Commands to apply during this batch.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ReceiveCommand> |
BatchRefUpdate.getCommands()
Get commands this update will process.
|
Modifier and Type | Method and Description |
---|---|
BatchRefUpdate |
BatchRefUpdate.addCommand(ReceiveCommand... cmd)
Add commands to this batch update.
|
BatchRefUpdate |
BatchRefUpdate.addCommand(ReceiveCommand cmd)
Add a single command to this batch update.
|
protected java.lang.String |
BatchRefUpdate.getRefLogMessage(ReceiveCommand cmd)
Get reflog message for a command.
|
protected boolean |
BatchRefUpdate.isForceRefLog(ReceiveCommand cmd)
Check whether the reflog for a command should be written regardless of repo
defaults.
|
protected boolean |
BatchRefUpdate.isRefLogDisabled(ReceiveCommand cmd)
Check whether reflog is disabled for a command.
|
protected boolean |
BatchRefUpdate.isRefLogIncludingResult(ReceiveCommand cmd)
Check whether the reflog message for a command should include the result.
|
protected RefUpdate |
BatchRefUpdate.newUpdate(ReceiveCommand cmd)
Create a new RefUpdate copying the batch settings.
|
Modifier and Type | Method and Description |
---|---|
BatchRefUpdate |
BatchRefUpdate.addCommand(java.util.Collection<ReceiveCommand> cmd)
Add commands to this batch update.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
TrackingRefUpdate.Command |
Modifier and Type | Field and Description |
---|---|
private ReceiveCommand |
TrackingRefUpdate.cmd |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ReceiveCommand> |
ConnectivityChecker.ConnectivityCheckInfo.commands |
private java.util.List<ReceiveCommand> |
PushCertificateParser.commands |
private java.util.List<ReceiveCommand> |
ReceivePack.commands |
private java.util.List<ReceiveCommand> |
PushCertificate.commands |
(package private) java.util.Collection<ReceiveCommand> |
PushCertificateStore.PendingCert.matching |
Modifier and Type | Method and Description |
---|---|
ReceiveCommand |
TrackingRefUpdate.asReceiveCommand()
Get this update wrapped by a ReceiveCommand.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(java.lang.String oldTarget,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a symbolic reference's target.
|
(package private) static ReceiveCommand |
ReceivePack.parseCommand(java.lang.String line) |
static ReceiveCommand |
ReceiveCommand.unlink(java.lang.String oldTarget,
ObjectId newId,
java.lang.String name)
Create a command to switch a reference from symbolic to object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ReceiveCommand> |
ReceiveCommand.filter(java.lang.Iterable<ReceiveCommand> in,
ReceiveCommand.Result want)
Filter a collection of commands according to result.
|
static java.util.List<ReceiveCommand> |
ReceiveCommand.filter(java.util.List<ReceiveCommand> commands,
ReceiveCommand.Result want)
Filter a list of commands according to result.
|
protected java.util.List<ReceiveCommand> |
ReceivePack.filterCommands(ReceiveCommand.Result want)
Filter the list of commands according to result.
|
java.util.List<ReceiveCommand> |
ReceivePack.getAllCommands()
Get all of the command received by the current request.
|
java.util.List<ReceiveCommand> |
ConnectivityChecker.ConnectivityCheckInfo.getCommands() |
java.util.List<ReceiveCommand> |
PushCertificate.getCommands()
Get the list of commands as one string to be feed into the signature
verifier.
|
Modifier and Type | Method and Description |
---|---|
void |
PushCertificateParser.addCommand(ReceiveCommand cmd)
Add a command to the signature.
|
private static boolean |
PushCertificateStore.commandsEqual(ReceiveCommand c1,
ReceiveCommand c2) |
default void |
ReceiveCommandErrorHandler.handleFastForwardCheckException(ReceiveCommand cmd,
java.io.IOException e)
Handle an exception thrown while checking if the update is fast-forward.
|
default void |
ReceiveCommandErrorHandler.handleNewIdValidationException(ReceiveCommand cmd,
java.io.IOException e)
Handle an exception thrown while validating the new commit ID.
|
default void |
ReceiveCommandErrorHandler.handleOldIdValidationException(ReceiveCommand cmd,
java.io.IOException e)
Handle an exception thrown while validating the old commit ID.
|
static boolean |
ReceiveCommand.isTransactionAborted(ReceiveCommand cmd)
Check whether a command failed due to transaction aborted.
|
Modifier and Type | Method and Description |
---|---|
static void |
ReceiveCommand.abort(java.lang.Iterable<ReceiveCommand> commands)
Set unprocessed commands as failed due to transaction aborted.
|
static java.util.List<ReceiveCommand> |
ReceiveCommand.filter(java.lang.Iterable<ReceiveCommand> in,
ReceiveCommand.Result want)
Filter a collection of commands according to result.
|
static java.util.List<ReceiveCommand> |
ReceiveCommand.filter(java.util.List<ReceiveCommand> commands,
ReceiveCommand.Result want)
Filter a list of commands according to result.
|
default void |
ReceiveCommandErrorHandler.handleBatchRefUpdateException(java.util.List<ReceiveCommand> cmds,
java.io.IOException e)
Handle an exception thrown while checking if the update is fast-forward.
|
void |
PostReceiveHook.onPostReceive(ReceivePack rp,
java.util.Collection<ReceiveCommand> commands)
Invoked after all commands are executed and status has been returned.
|
void |
PostReceiveHookChain.onPostReceive(ReceivePack rp,
java.util.Collection<ReceiveCommand> commands)
Invoked after all commands are executed and status has been returned.
|
void |
PreReceiveHookChain.onPreReceive(ReceivePack rp,
java.util.Collection<ReceiveCommand> commands)
Invoked just before commands are executed.
|
void |
PreReceiveHook.onPreReceive(ReceivePack rp,
java.util.Collection<ReceiveCommand> commands)
Invoked just before commands are executed.
|
void |
PushCertificateStore.put(PushCertificate cert,
PersonIdent ident,
java.util.Collection<ReceiveCommand> matching)
Put a certificate to be saved to the store, matching a set of commands.
|
void |
ConnectivityChecker.ConnectivityCheckInfo.setCommands(java.util.List<ReceiveCommand> commands) |
Constructor and Description |
---|
PendingCert(PushCertificate cert,
PersonIdent ident,
java.util.Collection<ReceiveCommand> matching) |
PushCertificate(java.lang.String version,
PushCertificateIdent pusher,
java.lang.String pushee,
java.lang.String nonce,
PushCertificate.NonceStatus nonceStatus,
java.util.List<ReceiveCommand> commands,
java.lang.String signature) |