Package | Description |
---|---|
org.eclipse.jgit.internal.ketch |
Distributed consensus system built on Git.
|
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 | Method and Description |
---|---|
Collection<ReceiveCommand> |
ReplicaPushRequest.getCommands()
Get commands to be executed, and their results.
|
List<ReceiveCommand> |
StageBuilder.makeStageList(Repository git,
ObjectId oldTree,
ObjectId newTree)
Compare two RefTrees and return commands to stage new objects.
|
List<ReceiveCommand> |
StageBuilder.makeStageList(Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
protected Collection<ReceiveCommand> |
KetchReplica.prepareCommit(Repository git,
Map<String,Ref> current,
ObjectId committed)
Build a list of commands to commit
KetchReplica.CommitMethod.ALL_REFS . |
Modifier and Type | Method and Description |
---|---|
void |
KetchPreReceive.onPreReceive(ReceivePack rp,
Collection<ReceiveCommand> cmds)
Invoked just before commands are executed.
|
Constructor and Description |
---|
Proposal(RevWalk rw,
Collection<ReceiveCommand> cmds)
Create a proposal from a collection of received commands.
|
ReplicaPushRequest(KetchReplica replica,
Collection<ReceiveCommand> commands)
Construct a new push request for a replica.
|
Constructor and Description |
---|
Command(RevWalk rw,
ReceiveCommand cmd)
Construct a RefTree command wrapped around a ReceiveCommand.
|
Modifier and Type | Method and Description |
---|---|
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 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(Collection<ReceiveCommand> cmd)
Add commands to this batch update.
|
Modifier and Type | Method and Description |
---|---|
ReceiveCommand |
TrackingRefUpdate.asReceiveCommand()
Get this update wrapped by a ReceiveCommand.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
String newTarget,
String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(String oldTarget,
String newTarget,
String name)
Create a command to switch a symbolic reference's target.
|
static ReceiveCommand |
ReceiveCommand.unlink(String oldTarget,
ObjectId newId,
String name)
Create a command to switch a reference from symbolic to object.
|
Modifier and Type | Method and Description |
---|---|
static List<ReceiveCommand> |
ReceiveCommand.filter(Iterable<ReceiveCommand> in,
ReceiveCommand.Result want)
Filter a collection of commands according to result.
|
static List<ReceiveCommand> |
ReceiveCommand.filter(List<ReceiveCommand> commands,
ReceiveCommand.Result want)
Filter a list of commands according to result.
|
protected List<ReceiveCommand> |
BaseReceivePack.filterCommands(ReceiveCommand.Result want)
Filter the list of commands according to result.
|
List<ReceiveCommand> |
BaseReceivePack.getAllCommands()
Get all of the command received by the current request.
|
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.
|
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(Iterable<ReceiveCommand> commands)
Set unprocessed commands as failed due to transaction aborted.
|
static List<ReceiveCommand> |
ReceiveCommand.filter(Iterable<ReceiveCommand> in,
ReceiveCommand.Result want)
Filter a collection of commands according to result.
|
static List<ReceiveCommand> |
ReceiveCommand.filter(List<ReceiveCommand> commands,
ReceiveCommand.Result want)
Filter a list of commands according to result.
|
void |
PostReceiveHookChain.onPostReceive(ReceivePack rp,
Collection<ReceiveCommand> commands)
Invoked after all commands are executed and status has been returned.
|
void |
PostReceiveHook.onPostReceive(ReceivePack rp,
Collection<ReceiveCommand> commands)
Invoked after all commands are executed and status has been returned.
|
void |
PreReceiveHook.onPreReceive(ReceivePack rp,
Collection<ReceiveCommand> commands)
Invoked just before commands are executed.
|
void |
PreReceiveHookChain.onPreReceive(ReceivePack rp,
Collection<ReceiveCommand> commands)
Invoked just before commands are executed.
|
void |
PushCertificateStore.put(PushCertificate cert,
PersonIdent ident,
Collection<ReceiveCommand> matching)
Put a certificate to be saved to the store, matching a set of commands.
|
Copyright © 2018 Eclipse JGit Project. All rights reserved.