Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.archive | |
org.eclipse.jgit.blame |
Computing blame/annotate information of files.
|
org.eclipse.jgit.diff |
Comparing file contents by computing diffs.
|
org.eclipse.jgit.dircache |
Reading and editing the directory cache (index).
|
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.junit | |
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.notes |
Git notes processing (for commits, etc).
|
org.eclipse.jgit.pgm | |
org.eclipse.jgit.pgm.debug | |
org.eclipse.jgit.pgm.opt | |
org.eclipse.jgit.revplot |
Building/rendering revision graphs.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.storage.file | |
org.eclipse.jgit.storage.pack | |
org.eclipse.jgit.submodule |
Git submodule support.
|
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.
|
org.eclipse.jgit.util.sha1 |
Modifier and Type | Class and Description |
---|---|
private static class |
NameRevCommand.NameRevCommit |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
MergeResult.base |
private ObjectId[] |
MergeResult.mergedCommits |
private ObjectId |
MergeResult.newHead |
private ObjectId |
BlameCommand.startCommit |
private ObjectId |
ArchiveCommand.tree |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ObjectId> |
CommitCommand.parents
parents this commit should have.
|
private java.util.Collection<ObjectId> |
BlameCommand.reverseEndCommits |
private java.util.List<ObjectId> |
NameRevCommand.revs |
Modifier and Type | Method and Description |
---|---|
ObjectId |
StashApplyCommand.call() |
ObjectId |
StashDropCommand.call() |
ObjectId |
MergeResult.getBase()
Get the common base
|
ObjectId[] |
MergeResult.getMergedCommits()
Get the commits which have been merged
|
ObjectId |
MergeResult.getNewHead()
Get the object the head points at after the merge
|
private ObjectId |
DescribeCommand.getObjectIdFromRef(Ref r) |
private ObjectId |
RebaseCommand.getOriginalHead() |
private ObjectId |
CheckoutCommand.getStartPointObjectId() |
private ObjectId |
CreateBranchCommand.getStartPointObjectId() |
private ObjectId |
StashApplyCommand.getStashId() |
private ObjectId |
ResetCommand.resolveRefToCommitId() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ObjectId,java.lang.String> |
NameRevCommand.call() |
Modifier and Type | Method and Description |
---|---|
NameRevCommand |
NameRevCommand.add(ObjectId id)
Add an object to search for.
|
private void |
ResetCommand.checkoutIndex(ObjectId commitTree) |
private DirCache |
CommitCommand.createTemporaryIndex(ObjectId headId,
DirCache index,
RevWalk rw) |
private void |
CommitCommand.insertChangeId(ObjectId treeId) |
private java.lang.String |
DescribeCommand.longDescription(Ref tag,
int depth,
ObjectId tip) |
private RevCommit |
ResetCommand.parseCommit(ObjectId commitId) |
private RevCommit |
StashCreateCommand.parseCommit(ObjectReader reader,
ObjectId headId) |
void |
ArchiveCommand.Format.putEntry(T out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
private void |
ResetCommand.resetIndex(ObjectId commitTree) |
private void |
ResetCommand.resetIndexForPaths(ObjectId commitTree) |
DescribeCommand |
DescribeCommand.setTarget(ObjectId target)
Sets the commit to be described.
|
ArchiveCommand |
ArchiveCommand.setTree(ObjectId tree)
Set the tag, commit, or tree object to produce an archive for
|
private void |
MergeCommand.updateHead(java.lang.StringBuilder refLogMessage,
ObjectId newHeadId,
ObjectId oldHeadID) |
private void |
StashDropCommand.updateRef(Ref stashRef,
ObjectId newId) |
private void |
StashCreateCommand.updateStashRef(ObjectId commitId,
PersonIdent refLogIdent,
java.lang.String refLogMessage) |
private void |
RebaseCommand.updateStashRef(ObjectId commitId,
PersonIdent refLogIdent,
java.lang.String refLogMessage) |
private Ref |
TagCommand.updateTagRef(ObjectId tagId,
RevWalk revWalk,
java.lang.String tagName,
java.lang.String newTagToString) |
Modifier and Type | Method and Description |
---|---|
NameRevCommand |
NameRevCommand.add(java.lang.Iterable<ObjectId> ids)
Add multiple objects to search for.
|
private void |
NameRevCommand.addPrefix(java.lang.String prefix,
java.util.Map<ObjectId,java.lang.String> nonCommits,
FIFORevQueue pending) |
private void |
NameRevCommand.addPrefixes(java.util.Map<ObjectId,java.lang.String> nonCommits,
FIFORevQueue pending) |
private void |
NameRevCommand.addRef(Ref ref,
java.util.Map<ObjectId,java.lang.String> nonCommits,
FIFORevQueue pending) |
BlameCommand |
BlameCommand.reverse(AnyObjectId start,
java.util.Collection<ObjectId> end)
Configure the generator to compute reverse blame (history of deletes).
|
Constructor and Description |
---|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults,
java.util.Map<java.lang.String,ResolveMerger.MergeFailureReason> failingPaths,
java.lang.String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults,
java.util.Map<java.lang.String,ResolveMerger.MergeFailureReason> failingPaths,
java.lang.String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults,
java.lang.String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
java.util.Map<java.lang.String,MergeResult<?>> lowLevelResults,
java.lang.String description)
Constructor for MergeResult.
|
Modifier and Type | Method and Description |
---|---|
void |
ZipFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
Tbz2Format.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TarFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TgzFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TxzFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
java.lang.String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ReverseWalk.ReverseCommit |
Modifier and Type | Field and Description |
---|---|
(package private) ObjectId |
Candidate.sourceBlob
Unique name of the candidate blob in
Candidate.sourceCommit . |
Modifier and Type | Method and Description |
---|---|
BlameGenerator |
BlameGenerator.reverse(AnyObjectId start,
java.util.Collection<? extends ObjectId> end)
Configure the generator to compute reverse blame (history of deletes).
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
PatchIdDiffFormatter.getCalulatedPatchId()
Should be called after having called one of the format methods
|
Modifier and Type | Method and Description |
---|---|
abstract ObjectLoader |
ContentSource.open(java.lang.String path,
ObjectId id)
Open the object.
|
ObjectLoader |
ContentSource.ObjectReaderSource.open(java.lang.String path,
ObjectId id) |
ObjectLoader |
ContentSource.WorkingTreeSource.open(java.lang.String path,
ObjectId id) |
abstract long |
ContentSource.size(java.lang.String path,
ObjectId id)
Determine the size of the object.
|
long |
ContentSource.ObjectReaderSource.size(java.lang.String path,
ObjectId id) |
long |
ContentSource.WorkingTreeSource.size(java.lang.String path,
ObjectId id) |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
DirCacheCheckout.headCommitTree |
private ObjectId |
DirCacheTree.id
Unique SHA-1 of this tree; null if invalid.
|
private ObjectId |
DirCacheCheckout.mergeCommitTree |
(package private) ObjectId |
DirCacheIterator.LazyLoadingAttributesNode.objectId |
Modifier and Type | Method and Description |
---|---|
ObjectId |
DirCacheEntry.getObjectId()
Obtain the ObjectId for the entry.
|
ObjectId |
DirCacheTree.getObjectId()
Get the tree's ObjectId.
|
(package private) ObjectId |
DirCacheTree.writeTree(DirCacheEntry[] cache,
int cIdx,
int pathOffset,
ObjectInserter ow)
Write (if necessary) this tree to the object store.
|
ObjectId |
DirCache.writeTree(ObjectInserter ow)
Write all index trees to the object store, returning the root tree.
|
Modifier and Type | Method and Description |
---|---|
private void |
DirCacheCheckout.addTree(TreeWalk tw,
ObjectId id) |
private boolean |
DirCacheCheckout.equalIdAndMode(ObjectId id1,
FileMode mode1,
ObjectId id2,
FileMode mode2)
Compares whether two pairs of ObjectId and FileMode are equal.
|
private boolean |
DirCacheCheckout.isModified_IndexTree(java.lang.String path,
ObjectId iId,
FileMode iMode,
ObjectId tId,
FileMode tMode,
ObjectId rootTree) |
private boolean |
DirCacheCheckout.isModifiedSubtree_IndexTree(java.lang.String path,
ObjectId tree)
Checks whether the subtree starting at a given path differs between Index and
some tree.
|
private void |
DirCacheCheckout.update(java.lang.String path,
ObjectId mId,
FileMode mode) |
Constructor and Description |
---|
DirCacheCheckout(Repository repo,
DirCache dc,
ObjectId mergeCommitTree)
Constructs a DirCacheCeckout for checking out one tree, merging with the
index.
|
DirCacheCheckout(Repository repo,
DirCache dc,
ObjectId mergeCommitTree,
WorkingTreeIterator workingTree)
Constructs a DirCacheCeckout for checking out one tree, merging with the
index.
|
DirCacheCheckout(Repository repo,
ObjectId headCommitTree,
DirCache dc,
ObjectId mergeCommitTree)
Constructs a DirCacheCeckout for merging and checking out two trees (HEAD
and mergeCommitTree) and the index.
|
DirCacheCheckout(Repository repo,
ObjectId headCommitTree,
DirCache dc,
ObjectId mergeCommitTree,
WorkingTreeIterator workingTree)
Constructs a DirCacheCeckout for merging and checking out two trees (HEAD
and mergeCommitTree) and the index.
|
LazyLoadingAttributesNode(ObjectId objectId) |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
MissingObjectException.missing |
private ObjectId |
LargeObjectException.objectId |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ObjectId> |
AmbiguousObjectException.candidates |
Modifier and Type | Method and Description |
---|---|
ObjectId |
LargeObjectException.getObjectId()
Get identity of the object that is too large; may be null
|
ObjectId |
MissingObjectException.getObjectId()
Get the ObjectId that was not found
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ObjectId> |
AmbiguousObjectException.getCandidates()
Get the matching candidates (or at least a subset of them)
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
MissingBundlePrerequisiteException.format(java.util.Map<ObjectId,java.lang.String> missingCommits) |
Constructor and Description |
---|
CorruptObjectException(ObjectId id,
java.lang.String why)
Construct a CorruptObjectException for reporting a problem specified
object id
|
IncorrectObjectTypeException(ObjectId id,
int type)
Construct and IncorrectObjectTypeException for the specified object id.
|
IncorrectObjectTypeException(ObjectId id,
java.lang.String type)
Construct and IncorrectObjectTypeException for the specified object id.
|
MissingObjectException(ObjectId id,
int type)
Construct a MissingObjectException for the specified object id.
|
MissingObjectException(ObjectId id,
java.lang.String type)
Construct a MissingObjectException for the specified object id.
|
Constructor and Description |
---|
AmbiguousObjectException(AbbreviatedObjectId id,
java.util.Collection<ObjectId> candidates)
Construct a MissingObjectException for the specified object id.
|
MissingBundlePrerequisiteException(URIish uri,
java.util.Map<ObjectId,java.lang.String> missingCommits)
Constructs a MissingBundlePrerequisiteException for a set of objects.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
RepoCommand.RemoteReader.sha1(java.lang.String uri,
java.lang.String ref)
Read a remote ref sha1.
|
ObjectId |
RepoCommand.DefaultRemoteReader.sha1(java.lang.String uri,
java.lang.String ref) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FsckPackParser.ObjFromPack |
Modifier and Type | Field and Description |
---|---|
(package private) ObjectId |
FsckError.CorruptObject.id |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ObjectId> |
FsckError.missingObjects |
Modifier and Type | Method and Description |
---|---|
ObjectId |
FsckError.CorruptObject.getId() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
FsckError.getMissingObjects()
Get missing objects that should present in pack files
|
Constructor and Description |
---|
CorruptObject(ObjectId id,
int type,
ObjectChecker.ErrorType errorType) |
Modifier and Type | Class and Description |
---|---|
class |
LogIndex
An ObjectId for a commit extended with incrementing log index.
|
Modifier and Type | Field and Description |
---|---|
(package private) ObjectId |
ReplicaSnapshot.accepted |
(package private) ObjectId |
ReplicaSnapshot.committed |
private ObjectId |
LagCheck.remoteId |
private ObjectId |
KetchReplica.txnAccepted
Value known for
"refs/txn/accepted" . |
private ObjectId |
KetchReplica.txnCommitted
Value known for
"refs/txn/committed" . |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ObjectId,java.util.List<ReceiveCommand>> |
KetchReplica.staged |
private java.util.Set<ObjectId> |
ReplicaFetchRequest.wantObjects |
Modifier and Type | Method and Description |
---|---|
private ObjectId |
ElectionRound.bumpTerm(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
ObjectId |
ReplicaSnapshot.getAccepted()
Get last known Git commit at
refs/txn/accepted |
ObjectId |
ReplicaSnapshot.getCommitted()
Get last known Git commit at
refs/txn/committed |
(package private) static ObjectId |
KetchReplica.getId(Ref ref) |
(package private) ObjectId |
LagCheck.getRemoteId() |
(package private) ObjectId |
KetchReplica.getTxnAccepted() |
private ObjectId |
ProposalRound.insertMultiProposal(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
private ObjectId |
ProposalRound.insertProposals(Repository git,
ProposedTimestamp ts) |
private ObjectId |
ProposalRound.insertSingleProposal(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
private static ObjectId |
KetchReplica.readId(ReplicaPushRequest req,
ReceiveCommand cmd) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
ReplicaFetchRequest.getWantObjects()
Get objects to be fetched.
|
Modifier and Type | Method and Description |
---|---|
(package private) KetchReplica.State |
LagCheck.check(ObjectId acceptId,
ReceiveCommand acceptCmd) |
private static void |
LeaderSnapshot.debug(java.lang.StringBuilder s,
java.lang.String name,
ObjectId accepted,
ObjectId committed) |
private static boolean |
KetchReplica.equals(ObjectId a,
LogIndex b) |
java.util.List<ReceiveCommand> |
StageBuilder.makeStageList(Repository git,
ObjectId oldTree,
ObjectId newTree)
Compare two RefTrees and return commands to stage new objects.
|
private void |
RemoteGitReplica.prepareCommit(Repository git,
java.util.List<RemoteGitReplica.RemoteCommand> cmds,
java.util.Map<java.lang.String,RemoteRefUpdate> updates,
java.util.Map<java.lang.String,Ref> adv,
ObjectId committed) |
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 . |
private void |
KetchReplica.prepareTxnCommitted(java.util.List<ReceiveCommand> cmds,
ObjectId committed) |
private void |
KetchReplica.removeStaged(java.util.List<ReceiveCommand> cmds,
ObjectId committed) |
private void |
StageBuilder.stage(java.util.List<ReceiveCommand> cmds,
ObjectId id) |
(package private) static java.lang.String |
LeaderSnapshot.str(ObjectId c) |
private void |
KetchReplica.updateView(ReplicaPushRequest req,
ObjectId acceptId,
ReceiveCommand commitCmd) |
Modifier and Type | Method and Description |
---|---|
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.
|
private void |
StageBuilder.reduceObjects(java.util.List<ReceiveCommand> cmds,
java.util.List<RevCommit> commits,
Repository git,
java.util.Set<ObjectId> newObjs) |
Constructor and Description |
---|
StageBuilder(java.lang.String txnStageNamespace,
ObjectId txnId)
Construct a stage builder for a transaction.
|
Constructor and Description |
---|
ReplicaFetchRequest(java.util.Set<java.lang.String> wantRefs,
java.util.Set<ObjectId> wantObjects)
Construct a new fetch request for a replica.
|
Modifier and Type | Class and Description |
---|---|
private static class |
DfsReader.FoundObject<T extends ObjectId> |
Modifier and Type | Class and Description |
---|---|
(package private) class |
DfsObjectToPack
|
private static class |
DfsPackCompactor.ObjectIdWithOffset |
Modifier and Type | Field and Description |
---|---|
(package private) ObjectId |
DfsObjectRepresentation.baseId |
private ObjectId |
DfsInserter.StreamLoader.id |
(package private) T |
DfsReader.FoundObject.id |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ObjectId> |
DfsGarbageCollector.allHeadsAndTags |
private java.util.Set<ObjectId> |
DfsGarbageCollector.allTags |
private java.util.Set<ObjectId> |
DfsGarbageCollector.nonHeads |
private java.util.Set<ObjectId> |
DfsGarbageCollector.tagTargets |
private java.util.Set<ObjectId> |
DfsGarbageCollector.txnHeads |
Modifier and Type | Method and Description |
---|---|
private <T extends ObjectId> |
DfsReader.findAll(java.lang.Iterable<T> objectIds) |
private <T extends ObjectId> |
DfsReader.findAllImpl(DfsObjDatabase.PackList packList,
java.util.Collection<T> pending,
java.util.List<DfsReader.FoundObject<T>> r) |
<T extends ObjectId> |
DfsReader.getObjectSize(java.lang.Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object size lookup.
|
<T extends ObjectId> |
DfsReader.open(java.lang.Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object opening.
|
Modifier and Type | Method and Description |
---|---|
private ObjectId |
DfsInserter.endObject(ObjectId id,
long offset) |
ObjectId |
DfsObjectRepresentation.getDeltaBase()
Get identity of the object this delta applies to in order to recover the
original object content.
|
ObjectId |
DfsInserter.insert(int type,
byte[] data,
int off,
int len)
Insert a single object into the store, returning its unique name.
|
ObjectId |
DfsInserter.insert(int type,
long len,
java.io.InputStream in)
Insert a single object into the store, returning its unique name.
|
private static ObjectId |
DfsReftableDatabase.toId(Ref ref) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
DfsInserter.Reader.getShallowCommits() |
java.util.Set<ObjectId> |
DfsReader.getShallowCommits()
Returns IDs for those commits which should be considered as shallow.
|
java.util.Collection<ObjectId> |
DfsInserter.Reader.resolve(AbbreviatedObjectId id) |
java.util.Collection<ObjectId> |
DfsReader.resolve(AbbreviatedObjectId id)
Resolve an abbreviated ObjectId to its full form.
|
Modifier and Type | Method and Description |
---|---|
private ObjectId |
DfsInserter.endObject(ObjectId id,
long offset) |
private long |
DfsPackFile.findDeltaBase(DfsReader ctx,
ObjectId baseId) |
java.util.Set<Ref> |
DfsReftableDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
DfsPackFile.resolve(DfsReader ctx,
java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit) |
private void |
DfsReader.resolveImpl(DfsObjDatabase.PackList packList,
AbbreviatedObjectId id,
java.util.HashSet<ObjectId> matches) |
Constructor and Description |
---|
StreamLoader(ObjectId id,
int type,
long sz,
DfsStreamKey key,
long pos) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BasePackBitmapIndex.StoredBitmap
Data representation of the bitmap entry restored from a pack index.
|
private static class |
BitmapIndexImpl.MutableEntry |
private static class |
CachedObjectDirectory.UnpackedObjectId |
(package private) static class |
LazyObjectIdSetFile.Entry |
(package private) class |
LocalObjectToPack
|
private static class |
PackBitmapIndexBuilder.PositionEntry |
static class |
PackBitmapIndexRemapper.Entry
An entry in the old PackBitmapIndex.
|
Modifier and Type | Field and Description |
---|---|
private ObjectId |
LocalObjectRepresentation.baseId |
private ObjectId |
RefDirectory.PackedRefList.id |
private ObjectId |
UnpackedObject.LargeObject.id |
private static ObjectId |
PackFileSnapshot.MISSING_CHECKSUM |
private ObjectId |
ReflogEntryImpl.newId |
private ObjectId |
BitmapIndexImpl.BitmapObjectImpl.objectId |
private ObjectId |
RefDirectoryRename.objId
The value of the source reference at the start of the rename.
|
private ObjectId |
ReflogEntryImpl.oldId |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReferenceArray<ObjectId> |
UnpackedObjectCache.Table.ids |
private java.util.Set<ObjectId> |
ObjectDirectory.shallowCommitsIds |
Modifier and Type | Method and Description |
---|---|
private ObjectId |
PackInserter.computeName(java.util.List<PackedObjectInfo> list) |
private ObjectId |
PackInserter.endObject(ObjectId id,
long offset) |
ObjectId |
PackReverseIndex.findObject(long offset)
Search for object id with the specified start offset in this pack
(reverse) index.
|
(package private) ObjectId |
PackReverseIndex.findObjectByPosition(int nthPosition) |
(package private) ObjectId |
PackFile.findObjectForOffset(long offset)
Search for object id with the specified start offset in associated pack
(reverse) index.
|
ObjectId |
LocalObjectRepresentation.getDeltaBase()
Get identity of the object this delta applies to in order to recover the
original object content.
|
ObjectId |
ReflogEntryImpl.getNewId()
Get the commit id after the change
|
ObjectId |
PackBitmapIndexBuilder.getObject(int position)
Get the object at the bitmap position.
|
abstract ObjectId |
PackBitmapIndex.getObject(int position)
Get the object at the bitmap position.
|
ObjectId |
PackBitmapIndexV1.getObject(int position)
Get the object at the bitmap position.
|
ObjectId |
PackBitmapIndexRemapper.getObject(int position)
Get the object at the bitmap position.
|
private ObjectId |
LargePackedWholeObject.getObjectId() |
ObjectId |
RefDirectory.LooseUnpeeled.getObjectId() |
ObjectId |
BitmapIndexImpl.BitmapObjectImpl.getObjectId() |
ObjectId |
PackIndex.getObjectId(int nthPosition)
Get ObjectId for the n-th object entry returned by
PackIndex.iterator() . |
ObjectId |
PackIndexV2.getObjectId(long nthPosition)
Get ObjectId for the n-th object entry returned by
PackIndex.iterator() . |
abstract ObjectId |
PackIndex.getObjectId(long nthPosition)
Get ObjectId for the n-th object entry returned by
PackIndex.iterator() . |
ObjectId |
PackIndexV1.getObjectId(long nthPosition)
Get ObjectId for the n-th object entry returned by
PackIndex.iterator() . |
ObjectId |
ReflogEntryImpl.getOldId()
Get the commit id before the change
|
ObjectId |
PackInserter.insert(int type,
byte[] data,
int off,
int len)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectDirectoryInserter.insert(int type,
byte[] data,
int off,
int len)
Insert a single object into the store, returning its unique name.
|
private ObjectId |
ObjectDirectoryInserter.insert(int type,
byte[] data,
int off,
int len,
boolean createDuplicate)
Insert a loose object into the database.
|
ObjectId |
PackInserter.insert(int type,
long len,
java.io.InputStream in)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectDirectoryInserter.insert(int type,
long len,
java.io.InputStream is)
Insert a single object into the store, returning its unique name.
|
(package private) ObjectId |
ObjectDirectoryInserter.insert(int type,
long len,
java.io.InputStream is,
boolean createDuplicate)
Insert a loose object into the database.
|
private ObjectId |
ObjectDirectoryInserter.insertOneObject(java.io.File tmp,
ObjectId id,
boolean createDuplicate) |
ObjectId |
PackIndex.MutableEntry.toObjectId() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
FileRepository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
private java.util.Set<ObjectId> |
FileRepository.getAdditionalHaves(java.util.Set<ObjectDirectory.AlternateHandle.Id> skips)
Objects known to exist but not expressed by
#getAllRefs() . |
(package private) java.util.Set<ObjectId> |
ObjectDirectory.getShallowCommits() |
java.util.Set<ObjectId> |
WindowCursor.getShallowCommits()
Returns IDs for those commits which should be considered as shallow.
|
java.util.Set<ObjectId> |
PackInserter.Reader.getShallowCommits() |
(package private) abstract java.util.Set<ObjectId> |
FileObjectDatabase.getShallowCommits() |
(package private) java.util.Set<ObjectId> |
CachedObjectDirectory.getShallowCommits() |
private java.util.Set<ObjectId> |
GC.listNonHEADIndexObjects()
Return a list of those objects in the index which differ from whats in
HEAD
|
private java.util.Set<ObjectId> |
GC.listRefLogObjects(Ref ref,
long minTime) |
java.util.Collection<ObjectId> |
WindowCursor.resolve(AbbreviatedObjectId id)
Resolve an abbreviated ObjectId to its full form.
|
java.util.Collection<ObjectId> |
PackInserter.Reader.resolve(AbbreviatedObjectId id) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
ReflogWriter.encode(ObjectId oldId,
ObjectId newId,
PersonIdent ident,
java.lang.String message) |
private ObjectId |
PackInserter.endObject(ObjectId id,
long offset) |
private long |
PackFile.findDeltaBase(ObjectId baseId) |
(package private) static java.io.InputStream |
UnpackedObject.inflate(java.io.InputStream in,
long size,
ObjectId id) |
private ObjectId |
ObjectDirectoryInserter.insertOneObject(java.io.File tmp,
ObjectId id,
boolean createDuplicate) |
(package private) FileObjectDatabase.InsertLooseObjectResult |
ObjectDirectory.insertUnpackedObject(java.io.File tmp,
ObjectId id,
boolean createDuplicate) |
(package private) abstract FileObjectDatabase.InsertLooseObjectResult |
FileObjectDatabase.insertUnpackedObject(java.io.File tmp,
ObjectId id,
boolean createDuplicate) |
(package private) FileObjectDatabase.InsertLooseObjectResult |
CachedObjectDirectory.insertUnpackedObject(java.io.File tmp,
ObjectId objectId,
boolean createDuplicate) |
ReflogWriter |
ReflogWriter.log(java.lang.String refName,
ObjectId oldId,
ObjectId newId,
PersonIdent ident,
java.lang.String message)
Write the given entry information to the ref's log
|
(package private) static LocalObjectRepresentation |
LocalObjectRepresentation.newDelta(PackFile f,
long p,
long n,
ObjectId base) |
void |
LockFile.write(ObjectId id)
Write an ObjectId and LF to the temporary file.
|
Modifier and Type | Method and Description |
---|---|
private void |
GC.loosen(ObjectDirectoryInserter inserter,
ObjectReader reader,
PackFile pack,
java.util.HashSet<ObjectId> existing)
Loosen objects in a pack file which are not also in the newly-created
pack files.
|
void |
GC.prune(java.util.Set<ObjectId> objectsToKeep)
Like "git prune" this method tries to prune all loose objects which are
unreferenced.
|
private void |
GC.removeReferenced(java.util.Map<ObjectId,java.io.File> id2File,
ObjectWalk w)
Remove all entries from a map which key is the id of an object referenced
by the given ObjectWalk
|
(package private) void |
ObjectDirectory.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id) |
(package private) abstract void |
FileObjectDatabase.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id) |
(package private) void |
CachedObjectDirectory.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id) |
(package private) void |
PackFile.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit) |
void |
PackIndexV2.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit)
Find objects matching the prefix abbreviation.
|
abstract void |
PackIndex.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit)
Find objects matching the prefix abbreviation.
|
void |
PackIndexV1.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit)
Find objects matching the prefix abbreviation.
|
private void |
ObjectDirectory.resolve(java.util.Set<ObjectId> matches,
AbbreviatedObjectId id,
java.util.Set<ObjectDirectory.AlternateHandle.Id> skips) |
private PackFile |
GC.writePack(java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<ObjectId> tags,
java.util.Set<ObjectId> tagTargets,
java.util.List<ObjectIdSet> excludeObjects) |
private PackFile |
GC.writePack(java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<ObjectId> tags,
java.util.Set<ObjectId> tagTargets,
java.util.List<ObjectIdSet> excludeObjects) |
private PackFile |
GC.writePack(java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<ObjectId> tags,
java.util.Set<ObjectId> tagTargets,
java.util.List<ObjectIdSet> excludeObjects) |
private PackFile |
GC.writePack(java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<ObjectId> tags,
java.util.Set<ObjectId> tagTargets,
java.util.List<ObjectIdSet> excludeObjects) |
Constructor and Description |
---|
LooseNonTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id) |
LoosePeeledTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id,
ObjectId p) |
LooseUnpeeled(FileSnapshot snapShot,
java.lang.String refName,
ObjectId id) |
PackedRefList(RefList<Ref> src,
FileSnapshot s,
ObjectId i) |
Modifier and Type | Class and Description |
---|---|
private static class |
BaseSearch.TreeWithData |
class |
ObjectToPack
Per-object state used by
PackWriter . |
(package private) static class |
PackWriterBitmapPreparer.BitmapCommit
A commit object for which a bitmap index should be built.
|
Modifier and Type | Field and Description |
---|---|
private ObjectId[] |
BaseSearch.baseTrees |
private ObjectId |
ObjectToPack.deltaBase
Other object being packed that this will delta against.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<? extends ObjectId> |
PackWriter.excludeFromBitmapSelection |
private java.util.Map<ObjectId,java.lang.Integer> |
PackWriter.DepthAwareVisitationPolicy.lowestDepthVisited |
(package private) java.util.Set<? extends ObjectId> |
PackWriterBitmapPreparer.CommitSelectionHelper.newWants |
static java.util.Set<ObjectId> |
PackWriter.NONE
Empty set of objects for
preparePack() . |
private java.util.Set<ObjectId> |
PackWriter.tagTargets |
private java.util.Collection<? extends ObjectId> |
PackWriter.unshallowObjects |
private java.util.Set<? extends ObjectId> |
PackWriterBitmapPreparer.want |
Modifier and Type | Method and Description |
---|---|
ObjectId |
PackWriter.computeName()
Computes SHA-1 of lexicographically sorted objects ids written in this
pack, as used to name a pack file in repository.
|
ObjectId |
StoredObjectRepresentation.getDeltaBase()
Get identity of the object this delta applies to in order to recover the
original object content.
|
ObjectId |
ObjectToPack.getDeltaBaseId()
Get delta base object id if object is going to be packed in delta
representation
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
ObjectToPack.setDeltaBase(ObjectId deltaBase)
Set delta base for the object.
|
Modifier and Type | Method and Description |
---|---|
private PackWriterBitmapPreparer.CommitSelectionHelper |
PackWriterBitmapPreparer.captureOldAndNewCommits(RevWalk rw,
int expectedCommitCount,
java.util.Set<? extends ObjectId> excludeFromBitmapSelection)
Records which of the
wants can be found in the previous GC pack's
bitmap indices and which are new. |
private void |
PackWriter.findObjectsToPack(ProgressMonitor countingMonitor,
ObjectWalk walker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> noBitmaps) |
private void |
PackWriter.findObjectsToPack(ProgressMonitor countingMonitor,
ObjectWalk walker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> noBitmaps) |
private void |
PackWriter.findObjectsToPack(ProgressMonitor countingMonitor,
ObjectWalk walker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> noBitmaps) |
private void |
PackWriter.findObjectsToPackUsingBitmaps(BitmapWalker bitmapWalker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have) |
private void |
PackWriter.findObjectsToPackUsingBitmaps(BitmapWalker bitmapWalker,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have) |
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
java.util.Set<? extends ObjectId> interestingObjects,
java.util.Set<? extends ObjectId> uninterestingObjects,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
java.util.Set<? extends ObjectId> interestingObjects,
java.util.Set<? extends ObjectId> uninterestingObjects,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
java.util.Set<? extends ObjectId> interestingObjects,
java.util.Set<? extends ObjectId> uninterestingObjects,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
java.util.Set<? extends ObjectId> want,
java.util.Set<? extends ObjectId> have,
java.util.Set<? extends ObjectId> shallow,
java.util.Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
(package private) java.util.Collection<PackWriterBitmapPreparer.BitmapCommit> |
PackWriterBitmapPreparer.selectCommits(int expectedCommitCount,
java.util.Set<? extends ObjectId> excludeFromBitmapSelection)
Returns the commit objects for which bitmap indices should be built.
|
void |
PackWriter.setClientShallowCommits(java.util.Set<ObjectId> clientShallowCommits)
Records the set of shallow commits in the client.
|
void |
PackWriter.setShallowPack(int depth,
java.util.Collection<? extends ObjectId> unshallow)
Configure this pack for a shallow clone.
|
void |
PackWriter.setTagTargets(java.util.Set<ObjectId> objects)
Set the tag targets that should be hoisted earlier during packing.
|
Constructor and Description |
---|
CommitSelectionHelper(java.util.Set<? extends ObjectId> newWants,
RevCommit[] commitsByOldest,
int commitStartPos,
java.util.List<RevCommit> newWantsByNewest,
BitmapIndex.BitmapBuilder reusedCommitsBitmap,
java.util.List<PackWriterBitmapPreparer.BitmapCommit> reuse) |
PackWriterBitmapPreparer(ObjectReader reader,
PackBitmapIndexBuilder writeBitmaps,
ProgressMonitor pm,
java.util.Set<? extends ObjectId> want,
PackConfig config) |
Modifier and Type | Class and Description |
---|---|
private static class |
ReftableWriter.RefList |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
ReftableReader.ObjCursorImpl.match |
(package private) ObjectId |
BlockWriter.LogEntry.newId |
(package private) ObjectId |
BlockWriter.LogEntry.oldId |
Modifier and Type | Method and Description |
---|---|
private ObjectId |
BlockReader.readValueId() |
Modifier and Type | Method and Description |
---|---|
private void |
ReftableWriter.indexId(ObjectId id,
long blockPos) |
private static byte[] |
BlockWriter.ObjEntry.key(int idLen,
ObjectId id) |
(package private) void |
ReftableOutputStream.writeId(ObjectId id) |
void |
ReftableWriter.writeLog(java.lang.String ref,
long updateIndex,
PersonIdent who,
ObjectId oldId,
ObjectId newId,
java.lang.String message)
Write one reflog entry to the reftable.
|
Constructor and Description |
---|
LogEntry(java.lang.String refName,
long updateIndex,
PersonIdent who,
ObjectId oldId,
ObjectId newId,
java.lang.String message) |
ObjEntry(int idLen,
ObjectId id,
LongList blockPos) |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
RefTreeBatch.newCommitId |
private ObjectId |
RefTreeBatch.parentCommitId |
private ObjectId |
RefTreeBatch.parentTreeId |
(package private) ObjectId |
Scanner.Result.refTreeId |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ObjectId,java.lang.String> |
RefTree.pendingBlobs |
Modifier and Type | Method and Description |
---|---|
private static ObjectId |
RefTreeDatabase.idOf(Ref src) |
(package private) static ObjectId |
Command.symref(java.lang.String s) |
ObjectId |
RefTree.writeTree(ObjectInserter inserter)
Write this reference tree.
|
Modifier and Type | Method and Description |
---|---|
private Ref |
RefTreeUpdate.newRef(java.lang.String name,
ObjectId id) |
(package private) static Ref |
Command.toRef(RevWalk rw,
ObjectId id,
java.lang.String target,
java.lang.String name,
boolean mustExist) |
Constructor and Description |
---|
Result(ObjectId id,
RefList<Ref> all,
RefList<Ref> sym) |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
TestRepository.CommitBuilder.topLevelTree |
Modifier and Type | Method and Description |
---|---|
ObjectId |
TestRepository.lightweightTag(java.lang.String name,
ObjectId obj)
Tag an object using a lightweight tag.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RepositoryTestCase.createBranch(ObjectId objectId,
java.lang.String branchName)
Create a branch
|
ObjectId |
TestRepository.lightweightTag(java.lang.String name,
ObjectId obj)
Tag an object using a lightweight tag.
|
private static java.io.File |
TestRepository.nameFor(ObjectDirectory odb,
ObjectId name,
java.lang.String t) |
TestRepository.CommitBuilder |
TestRepository.CommitBuilder.setTopLevelTree(ObjectId treeId) |
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncObjectLoaderQueue<T extends ObjectId>
Queue to open objects asynchronously.
|
interface |
AsyncObjectSizeQueue<T extends ObjectId>
Queue to examine object sizes asynchronously.
|
class |
ObjectIdSubclassMap<V extends ObjectId>
Fast, efficient map specifically for
ObjectId
subclasses. |
Modifier and Type | Class and Description |
---|---|
static class |
ObjectIdOwnerMap.Entry
Type of entry stored in the
ObjectIdOwnerMap . |
Modifier and Type | Field and Description |
---|---|
static ObjectId |
Constants.EMPTY_BLOB_ID
Well-known object ID for the empty blob.
|
private static ObjectId[] |
CommitBuilder.EMPTY_OBJECTID_LIST |
static ObjectId |
Constants.EMPTY_TREE_ID
Well-known object ID for the empty tree.
|
private ObjectId |
RefUpdate.expValue
If non-null, the value
RefUpdate.oldValue must have to continue. |
private ObjectId |
RefUpdate.newValue
New value the caller wants this ref to have.
|
private ObjectId |
TagBuilder.object |
private ObjectId |
ObjectIdRef.objectId |
private ObjectId |
RefUpdate.oldValue
Old value of the ref, obtained after we lock it.
|
private ObjectId[] |
CommitBuilder.parentIds |
private ObjectId |
ObjectIdRef.PeeledTag.peeledObjectId |
(package private) V[] |
ObjectIdSubclassMap.table |
private ObjectId |
CommitBuilder.treeId |
private static ObjectId |
ObjectId.ZEROID |
Modifier and Type | Method and Description |
---|---|
<T extends ObjectId> |
ObjectReader.getObjectSize(java.lang.Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object size lookup.
|
<T extends ObjectId> |
ObjectReader.Filter.getObjectSize(java.lang.Iterable<T> objectIds,
boolean reportMissing) |
<T extends ObjectId> |
ObjectReader.open(java.lang.Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object opening.
|
<T extends ObjectId> |
ObjectReader.Filter.open(java.lang.Iterable<T> objectIds,
boolean reportMissing) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
TreeFormatter.computeId(ObjectInserter ins)
Compute the ObjectId for this tree
|
ObjectId |
AnyObjectId.copy()
Obtain an immutable copy of this current object name value.
|
private V[] |
ObjectIdSubclassMap.createArray(int sz) |
private static ObjectId |
ObjectId.fromHexString(byte[] bs,
int p) |
static ObjectId |
ObjectId.fromRaw(byte[] bs)
Convert an ObjectId from raw binary representation.
|
static ObjectId |
ObjectId.fromRaw(byte[] bs,
int p)
Convert an ObjectId from raw binary representation.
|
static ObjectId |
ObjectId.fromRaw(int[] is)
Convert an ObjectId from raw binary representation.
|
static ObjectId |
ObjectId.fromRaw(int[] is,
int p)
Convert an ObjectId from raw binary representation.
|
static ObjectId |
ObjectId.fromString(byte[] buf,
int offset)
Convert an ObjectId from hex characters (US-ASCII).
|
static ObjectId |
ObjectId.fromString(java.lang.String str)
Convert an ObjectId from hex characters.
|
ObjectId |
RefUpdate.getExpectedOldObjectId()
Get the expected value of the ref after the lock is taken, but before
update occurs.
|
ObjectId |
ReflogEntry.getNewId()
Get the commit id after the change
|
ObjectId |
RefUpdate.getNewObjectId()
Get the new value the ref will be (or was) updated to.
|
ObjectId |
SymbolicRef.getObjectId()
Cached value of this ref.
|
ObjectId |
TagBuilder.getObjectId()
Get the object this tag refers to.
|
ObjectId |
AsyncObjectLoaderQueue.getObjectId()
Get the ObjectId of the current object.
|
abstract ObjectId |
BitmapObject.getObjectId()
Get the name of this object.
|
ObjectId |
Ref.getObjectId()
Cached value of this ref.
|
ObjectId |
AsyncObjectSizeQueue.getObjectId()
Get the ObjectId of the current object.
|
ObjectId |
ObjectIdRef.getObjectId()
Cached value of this ref.
|
ObjectId |
ReflogEntry.getOldId()
Get the commit id before the change
|
ObjectId |
RefUpdate.getOldObjectId()
The old value of the ref, prior to the update being attempted.
|
ObjectId[] |
CommitBuilder.getParentIds()
Get the ancestors of this commit.
|
ObjectId |
SymbolicRef.getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
ObjectId |
Ref.getPeeledObjectId()
Cached value of
ref^{} (the ref peeled to commit). |
ObjectId |
ObjectIdRef.Unpeeled.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledTag.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledNonTag.getPeeledObjectId() |
ObjectId |
CommitBuilder.getTreeId()
Get id of the root tree listing this commit's snapshot.
|
ObjectId |
ObjectInserter.idFor(int type,
byte[] data)
Compute the name of an object, without inserting it.
|
ObjectId |
ObjectInserter.Filter.idFor(int type,
byte[] data) |
private ObjectId |
ObjectChecker.idFor(int objType,
byte[] raw) |
ObjectId |
ObjectInserter.idFor(int type,
byte[] data,
int off,
int len)
Compute the name of an object, without inserting it.
|
ObjectId |
ObjectInserter.Filter.idFor(int type,
byte[] data,
int off,
int len) |
ObjectId |
ObjectInserter.idFor(int objectType,
long length,
java.io.InputStream in)
Compute the name of an object, without inserting it.
|
ObjectId |
ObjectInserter.Filter.idFor(int objectType,
long length,
java.io.InputStream in) |
ObjectId |
ObjectInserter.idFor(TreeFormatter formatter)
Compute the ObjectId for the given tree without inserting it.
|
ObjectId |
ObjectInserter.Filter.idFor(TreeFormatter formatter) |
ObjectId |
ObjectInserter.insert(CommitBuilder builder)
Insert a single commit into the store, returning its unique name.
|
ObjectId |
ObjectInserter.insert(int type,
byte[] data)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectInserter.Filter.insert(int type,
byte[] data) |
ObjectId |
ObjectInserter.insert(int type,
byte[] data,
int off,
int len)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectInserter.Filter.insert(int type,
byte[] data,
int off,
int len) |
abstract ObjectId |
ObjectInserter.insert(int objectType,
long length,
java.io.InputStream in)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectInserter.Formatter.insert(int objectType,
long length,
java.io.InputStream in) |
ObjectId |
ObjectInserter.Filter.insert(int objectType,
long length,
java.io.InputStream in) |
ObjectId |
ObjectInserter.insert(TagBuilder builder)
Insert a single annotated tag into the store, returning its unique name.
|
ObjectId |
ObjectInserter.insert(TreeFormatter formatter)
Insert a single tree into the store, returning its unique name.
|
ObjectId |
TreeFormatter.insertTo(ObjectInserter ins)
Insert this tree and obtain its ObjectId.
|
static ObjectId |
ObjectIdSerializer.read(java.io.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.
|
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.
|
static ObjectId |
ObjectIdSerializer.readWithoutMarker(java.io.InputStream in)
Read a non-null
ObjectId from the stream. |
ObjectId |
Repository.resolve(java.lang.String revstr)
Parse a git revision string and return an object id.
|
private ObjectId |
Repository.resolveAbbreviation(java.lang.String revstr) |
private ObjectId |
Repository.resolveSimple(java.lang.String revstr) |
abstract ObjectId |
AnyObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
ObjectId |
MutableObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
ObjectId |
ObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
ObjectId |
AbbreviatedObjectId.toObjectId()
A complete ObjectId; null if
AbbreviatedObjectId.isComplete() is false |
static ObjectId |
ObjectId.zeroId()
Get the special all-null ObjectId.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
Repository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
abstract java.util.Set<ObjectId> |
ObjectReader.getShallowCommits()
Returns IDs for those commits which should be considered as shallow.
|
java.util.Set<ObjectId> |
ObjectReader.Filter.getShallowCommits() |
java.util.List<ObjectId> |
Repository.readMergeHeads()
Return the information stored in the file $GIT_DIR/MERGE_HEAD.
|
abstract java.util.Collection<ObjectId> |
ObjectReader.resolve(AbbreviatedObjectId id)
Resolve an abbreviated ObjectId to its full form.
|
java.util.Collection<ObjectId> |
ObjectReader.Filter.resolve(AbbreviatedObjectId id) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Ref> |
RefDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
private static boolean |
BatchRefUpdate.isMissing(RevWalk walk,
ObjectId id) |
protected void |
RefUpdate.setOldObjectId(ObjectId old)
Set the old value of the ref.
|
void |
CommitBuilder.setParentIds(ObjectId... newParents)
Set the parents of this commit.
|
static java.lang.String |
ObjectId.toString(ObjectId i)
Convert an ObjectId into a hex string representation.
|
void |
Repository.writeCherryPickHead(ObjectId head)
Write cherry pick commit into $GIT_DIR/CHERRY_PICK_HEAD.
|
void |
Repository.writeOrigHead(ObjectId head)
Write original HEAD commit into $GIT_DIR/ORIG_HEAD.
|
void |
Repository.writeRevertHead(ObjectId head)
Write revert commit into $GIT_DIR/REVERT_HEAD.
|
Modifier and Type | Method and Description |
---|---|
private void |
Repository.writeHeadsFile(java.util.List<? extends ObjectId> heads,
java.lang.String filename)
Write the given heads to a file in the git directory.
|
void |
Repository.writeMergeHeads(java.util.List<? extends ObjectId> heads)
Write new merge-heads into $GIT_DIR/MERGE_HEAD.
|
Constructor and Description |
---|
IndexDiff(Repository repository,
ObjectId objectId,
WorkingTreeIterator workingTreeIterator)
Construct an Indexdiff
|
ObjectIdRef(Ref.Storage st,
java.lang.String name,
ObjectId id,
long updateIndex)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
java.lang.String name,
ObjectId id)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
java.lang.String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
PeeledTag(Ref.Storage st,
java.lang.String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
PeeledTag(Ref.Storage st,
java.lang.String name,
ObjectId id,
ObjectId p,
long updateIndex)
Create a new ref pairing with update index.
|
Unpeeled(Ref.Storage st,
java.lang.String name,
ObjectId id)
Create a new ref pairing.
|
Unpeeled(Ref.Storage st,
java.lang.String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
Modifier and Type | Field and Description |
---|---|
private ObjectId |
ThreeWayMerger.baseCommitId |
private ObjectId |
StrategySimpleTwoWayInCore.InCoreMerger.resultTree |
protected ObjectId |
ResolveMerger.resultTree
merge result as tree
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
StrategyOneSided.OneSide.getBaseCommitId() |
abstract ObjectId |
Merger.getBaseCommitId()
Get the ID of the commit that was used as merge base for merging
|
ObjectId |
ThreeWayMerger.getBaseCommitId()
Get the ID of the commit that was used as merge base for merging
|
ObjectId |
StrategyOneSided.OneSide.getResultTreeId() |
abstract ObjectId |
Merger.getResultTreeId()
Get resulting tree.
|
ObjectId |
StrategySimpleTwoWayInCore.InCoreMerger.getResultTreeId() |
ObjectId |
ResolveMerger.getResultTreeId()
Get resulting tree.
|
private ObjectId |
ResolveMerger.insertMergeResult(TemporaryBuffer buf,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
private RevCommit |
RecursiveMerger.createCommitForTree(ObjectId tree,
java.util.List<RevCommit> parents)
Create a new commit by explicitly specifying the content tree and the
parents.
|
private RawText |
ResolveMerger.getRawText(ObjectId id,
Attributes attributes) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
NonNoteEntry
A tree entry found in a note branch that isn't a valid note.
|
class |
Note
In-memory representation of a single note attached to one object.
|
Modifier and Type | Field and Description |
---|---|
private ObjectId |
Note.data |
private ObjectId |
FanoutBucket.LazyNoteBucket.treeId |
Modifier and Type | Method and Description |
---|---|
ObjectId |
NoteMap.get(AnyObjectId id)
Lookup a note for a specific ObjectId.
|
ObjectId |
Note.getData()
Get the note content.
|
(package private) ObjectId |
FanoutBucket.getTreeId() |
(package private) ObjectId |
FanoutBucket.LazyNoteBucket.getTreeId() |
(package private) abstract ObjectId |
NoteBucket.getTreeId() |
(package private) ObjectId |
LeafBucket.getTreeId() |
private ObjectId |
NoteMapMerger.write(NonNoteEntry list) |
(package private) ObjectId |
FanoutBucket.writeTree(ObjectInserter inserter) |
(package private) ObjectId |
FanoutBucket.LazyNoteBucket.writeTree(ObjectInserter inserter) |
ObjectId |
NoteMap.writeTree(ObjectInserter inserter)
Write this note map as a tree.
|
(package private) abstract ObjectId |
NoteBucket.writeTree(ObjectInserter inserter) |
(package private) ObjectId |
LeafBucket.writeTree(ObjectInserter inserter) |
Modifier and Type | Method and Description |
---|---|
private void |
NoteMap.load(ObjectId rootTree) |
(package private) static InMemoryNoteBucket |
NoteParser.parse(AbbreviatedObjectId prefix,
ObjectId treeId,
ObjectReader reader)
Parse a tree object into a
NoteBucket instance. |
static NoteMap |
NoteMap.readTree(ObjectReader reader,
ObjectId treeId)
Load a collection of notes from a tree.
|
void |
NoteMap.set(AnyObjectId noteOn,
ObjectId noteData)
Attach (or remove) a note on an object.
|
(package private) void |
FanoutBucket.setBucket(int cell,
ObjectId id) |
(package private) void |
Note.setData(ObjectId newData) |
Constructor and Description |
---|
LazyNoteBucket(ObjectId treeId) |
Note(AnyObjectId noteOn,
ObjectId noteData)
A Git note about the object referenced by
noteOn . |
NoteParser(AbbreviatedObjectId prefix,
ObjectReader r,
ObjectId t) |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
Tag.object |
private ObjectId |
Archive.tree |
private ObjectId |
Describe.tree |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ObjectId> |
RevParse.commits |
Modifier and Type | Method and Description |
---|---|
(package private) ObjectId |
TextBuiltin.resolve(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
Push.safeAbbreviate(ObjectReader reader,
ObjectId id) |
private static java.lang.String |
AbstractFetchCommand.safeAbbreviate(ObjectReader reader,
ObjectId id) |
Modifier and Type | Field and Description |
---|---|
(package private) ObjectId |
RebuildCommitGraph.ToRewrite.newId |
(package private) ObjectId |
WriteReftable.LogEntry.newId |
private ObjectId |
ShowPackDelta.objectId |
(package private) ObjectId |
RebuildCommitGraph.ToRewrite.oldId |
(package private) ObjectId |
WriteReftable.LogEntry.oldId |
(package private) ObjectId[] |
RebuildCommitGraph.ToRewrite.oldParents |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ObjectId,ObjectId> |
RebuildCommitGraph.rewrites |
private java.util.Map<ObjectId,ObjectId> |
RebuildCommitGraph.rewrites |
Modifier and Type | Method and Description |
---|---|
private static ObjectId |
WriteReftable.parseId(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<ObjectId,java.util.List<Ref>> |
VerifyReftable.groupById(java.util.List<Ref> refs) |
Modifier and Type | Method and Description |
---|---|
private void |
BenchmarkReftable.byIdCold(ObjectId id) |
private void |
BenchmarkReftable.byIdHot(ObjectId id) |
private static java.lang.String |
VerifyReftable.id(ObjectId id) |
Constructor and Description |
---|
LogEntry(java.lang.String ref,
long updateIndex,
PersonIdent who,
ObjectId oldId,
ObjectId newId,
java.lang.String message) |
ToRewrite(ObjectId o,
long t,
ObjectId[] p) |
ToRewrite(ObjectId o,
long t,
ObjectId[] p) |
Constructor and Description |
---|
ObjectIdHandler(org.kohsuke.args4j.CmdLineParser parser,
org.kohsuke.args4j.OptionDef option,
org.kohsuke.args4j.spi.Setter<? super ObjectId> setter)
Create a new handler for the command name.
|
Modifier and Type | Class and Description |
---|---|
class |
PlotCommit<L extends PlotLane>
A commit reference to a commit in the DAG.
|
Modifier and Type | Class and Description |
---|---|
static class |
DepthWalk.Commit
RevCommit with a depth (in commits) from a root.
|
class |
RevBlob
A binary file, or a symbolic link.
|
class |
RevCommit
A commit reference to a commit in the DAG.
|
class |
RevObject
Base object type accessed during revision walking.
|
class |
RevTag
An annotated tag.
|
class |
RevTree
A reference to a tree of subtrees/files.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ObjectId> |
DepthWalk.RevWalk.deepenNots |
private java.util.List<ObjectId> |
DepthWalk.ObjectWalk.deepenNots |
Modifier and Type | Method and Description |
---|---|
<T extends ObjectId> |
RevWalk.parseAny(java.lang.Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object parsing.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
RevObject.getId()
Get the name of this object.
|
Modifier and Type | Method and Description |
---|---|
default java.util.List<ObjectId> |
DepthWalk.getDeepenNots() |
java.util.List<ObjectId> |
DepthWalk.RevWalk.getDeepenNots() |
java.util.List<ObjectId> |
DepthWalk.ObjectWalk.getDeepenNots() |
Modifier and Type | Method and Description |
---|---|
private void |
TreeRevFilter.updateFollowFilter(ObjectId[] trees,
DiffConfig cfg) |
Modifier and Type | Method and Description |
---|---|
void |
RevWalk.assumeShallow(java.util.Collection<? extends ObjectId> ids)
Assume additional commits are shallow (have no parents).
|
BitmapIndex.BitmapBuilder |
BitmapWalker.findObjects(java.lang.Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissing)
Return, as a bitmap, the objects reachable from the objects in start.
|
private BitmapIndex.BitmapBuilder |
BitmapWalker.findObjectsWalk(java.lang.Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissingStart) |
void |
DepthWalk.RevWalk.setDeepenNots(java.util.List<ObjectId> deepenNots)
Mark objects that the client specified using
--shallow-exclude.
|
Modifier and Type | Field and Description |
---|---|
private ObjectId |
FileBasedConfig.hash |
Modifier and Type | Method and Description |
---|---|
private static ObjectId |
FileBasedConfig.hash(byte[] rawText) |
Modifier and Type | Field and Description |
---|---|
java.util.Set<ObjectId> |
PackStatistics.Accumulator.clientShallowCommits
The set of shallow commits on the client.
|
java.util.Set<ObjectId> |
PackStatistics.Accumulator.interestingObjects
The set of objects to be included in the pack.
|
java.util.Set<ObjectId> |
PackStatistics.Accumulator.rootCommits
Commits with no parents.
|
java.util.Set<ObjectId> |
PackStatistics.Accumulator.uninterestingObjects
The set of objects to be excluded from the pack.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ObjectId> |
PackStatistics.getClientShallowCommits()
Get unmodifiable collection of objects that were shallow commits on the
client.
|
java.util.Set<ObjectId> |
PackStatistics.getInterestingObjects()
Get unmodifiable collection of objects to be included in the pack.
|
java.util.Set<ObjectId> |
PackStatistics.getRootCommits()
Get unmodifiable collection of the root commits of the history.
|
java.util.Set<ObjectId> |
PackStatistics.getUninterestingObjects()
Get unmodifiable collection of objects that should be excluded from the
pack
|
Modifier and Type | Field and Description |
---|---|
private ObjectId |
SubmoduleStatus.headId |
private ObjectId |
SubmoduleStatus.indexId |
private ObjectId |
SubmoduleConflict.objectId |
Modifier and Type | Method and Description |
---|---|
ObjectId |
SubmoduleWalk.getHead()
Get commit id that HEAD points to in the current submodule's repository
|
ObjectId |
SubmoduleStatus.getHeadId()
Get HEAD object id
|
ObjectId |
SubmoduleStatus.getIndexId()
Get index object id
|
ObjectId |
SubmoduleConflict.getObjectId() |
ObjectId |
SubmoduleWalk.getObjectId()
Get object id of current submodule entry
|
Constructor and Description |
---|
SubmoduleConflict(ObjectId objectId)
Create a SubmoduleConflict for the given submodule object id
|
SubmoduleStatus(SubmoduleStatusType type,
java.lang.String path,
ObjectId indexId)
Create submodule status
|
SubmoduleStatus(SubmoduleStatusType type,
java.lang.String path,
ObjectId indexId,
ObjectId headId)
Create submodule status
|
Modifier and Type | Class and Description |
---|---|
class |
PackedObjectInfo
Description of an object stored in a pack file, including offset.
|
private static class |
PackParser.DeltaChain |
Modifier and Type | Field and Description |
---|---|
private ObjectId |
RemoteRefUpdate.expectedOldObjectId |
(package private) ObjectId |
PackParser.DeltaVisit.id |
private ObjectId |
ReceiveCommand.newId |
(package private) ObjectId |
TrackingRefUpdate.newObjectId |
private ObjectId |
RemoteRefUpdate.newObjectId |
(package private) ObjectId |
FetchHeadRecord.newValue |
private ObjectId |
ReceiveCommand.oldId |
(package private) ObjectId |
TrackingRefUpdate.oldObjectId |
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<ObjectId> |
BasePackConnection.additionalHaves
Extra objects the remote has, but which aren't offered as refs.
|
private java.util.Set<ObjectId> |
UploadPack.advertised
Objects we sent in our advertisement list, clients can ask for these.
|
(package private) java.util.Set<ObjectId> |
BaseReceivePack.advertisedHaves
All SHA-1s shown to the client, which can be possible edges.
|
private java.util.HashMap<ObjectId,Ref> |
FetchProcess.askFor
Set of refs we will actually wind up asking to obtain.
|
private ObjectIdSubclassMap<ObjectId> |
PackParser.baseObjectIds
Objects referenced by their name from deltas, that aren't in this pack.
|
(package private) java.util.Set<ObjectId> |
FetchV2Request.Builder.clientShallowCommits |
private java.util.Set<ObjectId> |
BaseReceivePack.clientShallowCommits |
(package private) java.util.Set<ObjectId> |
FetchV0Request.Builder.clientShallowCommits |
(package private) java.util.Set<ObjectId> |
FetchRequest.clientShallowCommits |
private java.util.HashMap<ObjectId,java.util.List<java.lang.Throwable>> |
WalkFetchConnection.fetchErrors
Errors received while trying to obtain an object.
|
private java.util.HashSet<ObjectId> |
FetchProcess.have
Objects we know we have locally.
|
private java.util.Map<java.lang.String,ObjectId> |
BundleWriter.include |
private ObjectIdSubclassMap<ObjectId> |
PackParser.newObjectIds
Every object contained within the incoming pack.
|
private java.util.List<ObjectId> |
FetchV2Request.peerHas |
(package private) java.util.List<ObjectId> |
FetchV2Request.Builder.peerHas |
(package private) java.util.Map<ObjectId,java.lang.String> |
BundleFetchConnection.prereqs |
private java.util.Set<ObjectId> |
RefAdvertiser.sent |
private java.util.Set<ObjectId> |
BundleWriter.tagTargets |
private java.util.Set<ObjectId> |
UploadPack.wantIds
Raw ObjectIds the client has asked for, before validating them.
|
(package private) java.util.Set<ObjectId> |
FetchV2Request.Builder.wantIds |
(package private) java.util.Set<ObjectId> |
FetchV0Request.Builder.wantIds |
(package private) java.util.Set<ObjectId> |
FetchRequest.wantIds |
private java.util.LinkedList<ObjectId> |
WalkFetchConnection.workQueue
Objects we need to copy from the remote repository.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
RemoteRefUpdate.getExpectedOldObjectId()
Get expected old object id
|
ObjectId |
ReceiveCommand.getNewId()
Get the requested new value for this ref.
|
ObjectId |
TrackingRefUpdate.getNewObjectId()
Get the new value the ref will be (or was) updated to.
|
ObjectId |
RemoteRefUpdate.getNewObjectId()
Get new object id
|
ObjectId |
ReceiveCommand.getOldId()
Get the old value the client thinks the ref has.
|
ObjectId |
TrackingRefUpdate.getOldObjectId()
The old value of the ref, prior to the update being attempted.
|
private ObjectId |
UploadPack.processHaveLines(java.util.List<ObjectId> peerHas,
ObjectId last,
PacketLineOut out) |
private ObjectId |
PushCertificateStore.saveCert(ObjectInserter inserter,
DirCache dc,
PushCertificateStore.PendingCert pc,
ObjectId curr) |
private ObjectId |
PushCertificateStore.write() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<ObjectId> |
AbstractAdvertiseRefsHook.getAdvertisedHaves(Repository repository,
RevWalk revWalk)
Get the additional haves to advertise.
|
java.util.Set<ObjectId> |
BaseReceivePack.getAdvertisedObjects()
Get objects advertised to the client.
|
ObjectIdSubclassMap<ObjectId> |
PackParser.getBaseObjectIds()
Get set of objects the incoming pack assumed for delta purposes
|
protected java.util.Set<ObjectId> |
BaseReceivePack.getClientShallowCommits()
Get the commits from the client's shallow file.
|
(package private) java.util.Set<ObjectId> |
FetchRequest.getClientShallowCommits()
Shallow commits the client already has.
|
ObjectIdSubclassMap<ObjectId> |
PackParser.getNewObjectIds()
Get the new objects that were sent by the user
|
(package private) java.util.List<ObjectId> |
FetchV2Request.getPeerHas() |
(package private) java.util.Set<ObjectId> |
FetchRequest.getWantIds() |
private static java.util.Set<ObjectId> |
UploadPack.refIdSet(java.util.Collection<Ref> refs) |
java.util.Set<ObjectId> |
RefAdvertiser.send(java.util.Collection<Ref> refs)
Format an advertisement for the supplied refs.
|
java.util.Set<ObjectId> |
RefAdvertiser.send(java.util.Map<java.lang.String,Ref> refs)
Deprecated.
use
RefAdvertiser.send(Collection) instead. |
private java.util.Iterator<ObjectId> |
WalkFetchConnection.swapFetchQueue() |
private java.util.Map<java.lang.String,ObjectId> |
UploadPack.wantedRefs(FetchV2Request req) |
Modifier and Type | Method and Description |
---|---|
(package private) FetchV2Request.Builder |
FetchV2Request.Builder.addClientShallowCommit(ObjectId shallowOid) |
(package private) FetchV0Request.Builder |
FetchV0Request.Builder.addClientShallowCommit(ObjectId shallowOid) |
(package private) FetchV2Request.Builder |
FetchV2Request.Builder.addPeerHas(ObjectId objectId) |
(package private) FetchV2Request.Builder |
FetchV2Request.Builder.addWantId(ObjectId wantId) |
(package private) FetchV0Request.Builder |
FetchV0Request.Builder.addWantId(ObjectId objectId) |
private TrackingRefUpdate |
FetchProcess.createUpdate(RefSpec spec,
ObjectId newId) |
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.
|
private boolean |
FetchProcess.localHasObject(ObjectId id) |
protected PackedObjectInfo |
PackParser.newInfo(AnyObjectId id,
PackParser.UnresolvedDelta delta,
ObjectId deltaBase)
Construct a PackedObjectInfo instance for this parser.
|
private void |
BasePackFetchConnection.parseReachable(ObjectId id) |
private void |
WalkFetchConnection.process(ObjectId id) |
private ObjectId |
UploadPack.processHaveLines(java.util.List<ObjectId> peerHas,
ObjectId last,
PacketLineOut out) |
private void |
FetchProcess.removeFetchHeadRecord(ObjectId want) |
private void |
FetchProcess.removeTrackingRefUpdate(ObjectId want) |
private ObjectId |
PushCertificateStore.saveCert(ObjectInserter inserter,
DirCache dc,
PushCertificateStore.PendingCert pc,
ObjectId curr) |
(package private) void |
RemoteRefUpdate.setExpectedOldObjectId(ObjectId id) |
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.
|
private RefUpdate.Result |
PushCertificateStore.updateRef(ObjectId newId) |
private void |
FetchProcess.want(ObjectId id) |
(package private) void |
WalkRemoteObjectDatabase.writeRef(java.lang.String name,
ObjectId value)
Overwrite (or create) a loose ref in the remote repository.
|
Modifier and Type | Method and Description |
---|---|
private static void |
UploadPack.checkNotAdvertisedWants(UploadPack up,
java.util.List<ObjectId> notAdvertisedWants,
java.util.Set<ObjectId> reachableFrom) |
private static void |
UploadPack.checkNotAdvertisedWants(UploadPack up,
java.util.List<ObjectId> notAdvertisedWants,
java.util.Set<ObjectId> reachableFrom) |
private static void |
UploadPack.checkNotAdvertisedWantsUsingBitmap(ObjectReader reader,
BitmapIndex bitmapIndex,
java.util.List<ObjectId> notAdvertisedWants,
java.util.Set<ObjectId> reachableFrom) |
private static void |
UploadPack.checkNotAdvertisedWantsUsingBitmap(ObjectReader reader,
BitmapIndex bitmapIndex,
java.util.List<ObjectId> notAdvertisedWants,
java.util.Set<ObjectId> reachableFrom) |
void |
UploadPack.RequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants)
Check a list of client wants against the request policy.
|
void |
UploadPack.AdvertisedRequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants) |
void |
UploadPack.ReachableCommitRequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants) |
void |
UploadPack.TipRequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants) |
void |
UploadPack.ReachableCommitTipRequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants) |
void |
UploadPack.AnyRequestValidator.checkWants(UploadPack up,
java.util.List<ObjectId> wants) |
private void |
UploadPack.computeShallowsAndUnshallows(FetchRequest req,
UploadPack.IOConsumer<ObjectId> shallowFunc,
UploadPack.IOConsumer<ObjectId> unshallowFunc,
java.util.List<ObjectId> deepenNots) |
private void |
UploadPack.computeShallowsAndUnshallows(FetchRequest req,
UploadPack.IOConsumer<ObjectId> shallowFunc,
UploadPack.IOConsumer<ObjectId> unshallowFunc,
java.util.List<ObjectId> deepenNots) |
private void |
UploadPack.computeShallowsAndUnshallows(FetchRequest req,
UploadPack.IOConsumer<ObjectId> shallowFunc,
UploadPack.IOConsumer<ObjectId> unshallowFunc,
java.util.List<ObjectId> deepenNots) |
protected void |
BundleFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected abstract void |
BaseFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected void |
WalkFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected void |
BasePackFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream)
Execute common ancestor negotiation and fetch the objects.
|
protected void |
TransportHttp.SmartHttpFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream) |
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BaseFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BaseFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.
|
private void |
WalkFetchConnection.markLocalRefsComplete(java.util.Set<ObjectId> have) |
private void |
BasePackFetchConnection.markReachable(java.util.Set<ObjectId> have,
int maxTime) |
private static java.util.List<RevCommit> |
UploadPack.objectIdsToRevCommits(RevWalk walk,
java.lang.Iterable<ObjectId> objectIds) |
private static java.util.List<RevObject> |
UploadPack.objectIdsToRevObjects(RevWalk walk,
java.lang.Iterable<ObjectId> objectIds) |
void |
PreUploadHookChain.onBeginNegotiateRound(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
int cntOffered)
Invoked before negotiation round is started.
|
void |
PreUploadHook.onBeginNegotiateRound(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
int cntOffered)
Invoked before negotiation round is started.
|
void |
PreUploadHookChain.onEndNegotiateRound(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
int cntCommon,
int cntNotFound,
boolean ready)
Invoked after a negotiation round is completed.
|
void |
PreUploadHook.onEndNegotiateRound(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
int cntCommon,
int cntNotFound,
boolean ready)
Invoked after a negotiation round is completed.
|
void |
PreUploadHookChain.onSendPack(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
java.util.Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHookChain.onSendPack(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
java.util.Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHook.onSendPack(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
java.util.Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHook.onSendPack(UploadPack up,
java.util.Collection<? extends ObjectId> wants,
java.util.Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
private ObjectId |
UploadPack.processHaveLines(java.util.List<ObjectId> peerHas,
ObjectId last,
PacketLineOut out) |
private void |
UploadPack.sendPack(boolean sideband,
FetchRequest req,
PackStatistics.Accumulator accumulator,
java.util.Collection<Ref> allTags,
java.util.List<ObjectId> unshallowCommits,
java.util.List<ObjectId> deepenNots)
Send the requested objects to the client.
|
private void |
UploadPack.sendPack(boolean sideband,
FetchRequest req,
PackStatistics.Accumulator accumulator,
java.util.Collection<Ref> allTags,
java.util.List<ObjectId> unshallowCommits,
java.util.List<ObjectId> deepenNots)
Send the requested objects to the client.
|
private void |
UploadPack.sendPack(PackStatistics.Accumulator accumulator,
FetchRequest req,
java.util.Collection<Ref> allTags,
java.util.List<ObjectId> unshallowCommits,
java.util.List<ObjectId> deepenNots)
Send the requested objects to the client.
|
private void |
UploadPack.sendPack(PackStatistics.Accumulator accumulator,
FetchRequest req,
java.util.Collection<Ref> allTags,
java.util.List<ObjectId> unshallowCommits,
java.util.List<ObjectId> deepenNots)
Send the requested objects to the client.
|
abstract void |
BaseReceivePack.setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs,
java.util.Set<ObjectId> additionalHaves)
|
void |
ReceivePack.setAdvertisedRefs(java.util.Map<java.lang.String,Ref> allRefs,
java.util.Set<ObjectId> additionalHaves)
Set the refs advertised by this ReceivePack.
|
private void |
UploadPack.verifyClientShallow(java.util.Set<ObjectId> shallowCommits) |
Constructor and Description |
---|
ReceiveCommand(ObjectId oldId,
ObjectId newId,
java.lang.String name)
Create a new command for
BaseReceivePack . |
ReceiveCommand(ObjectId oldId,
ObjectId newId,
java.lang.String name,
ReceiveCommand.Type type)
Create a new command for
BaseReceivePack . |
ReceiveCommand(ObjectId oldId,
java.lang.String newSymref,
java.lang.String name)
Create a command to switch a reference from object to symbolic.
|
ReceiveCommand(java.lang.String oldSymref,
ObjectId newId,
java.lang.String name)
Create a command to switch a reference from symbolic to object.
|
RemoteRefUpdate(RemoteRefUpdate base,
ObjectId newExpectedOldObjectId)
Create a new instance of this object basing on existing instance for
configuration.
|
RemoteRefUpdate(Repository localDb,
Ref srcRef,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
java.lang.String srcRef,
ObjectId srcId,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
java.lang.String srcRef,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
Constructor and Description |
---|
FetchRequest(java.util.Set<ObjectId> wantIds,
int depth,
java.util.Set<ObjectId> clientShallowCommits,
FilterSpec filterSpec,
java.util.Set<java.lang.String> clientCapabilities,
int deepenSince,
java.util.List<java.lang.String> deepenNotRefs,
java.lang.String agent)
Initialize the common fields of a fetch request.
|
FetchRequest(java.util.Set<ObjectId> wantIds,
int depth,
java.util.Set<ObjectId> clientShallowCommits,
FilterSpec filterSpec,
java.util.Set<java.lang.String> clientCapabilities,
int deepenSince,
java.util.List<java.lang.String> deepenNotRefs,
java.lang.String agent)
Initialize the common fields of a fetch request.
|
FetchV0Request(java.util.Set<ObjectId> wantIds,
int depth,
java.util.Set<ObjectId> clientShallowCommits,
FilterSpec filterSpec,
java.util.Set<java.lang.String> clientCapabilities,
java.lang.String agent) |
FetchV0Request(java.util.Set<ObjectId> wantIds,
int depth,
java.util.Set<ObjectId> clientShallowCommits,
FilterSpec filterSpec,
java.util.Set<java.lang.String> clientCapabilities,
java.lang.String agent) |
FetchV2Request(java.util.List<ObjectId> peerHas,
java.util.List<java.lang.String> wantedRefs,
java.util.Set<ObjectId> wantIds,
java.util.Set<ObjectId> clientShallowCommits,
int deepenSince,
java.util.List<java.lang.String> deepenNotRefs,
int depth,
FilterSpec filterSpec,
boolean doneReceived,
java.util.Set<java.lang.String> clientCapabilities,
java.lang.String agent,
java.util.List<java.lang.String> serverOptions) |
FetchV2Request(java.util.List<ObjectId> peerHas,
java.util.List<java.lang.String> wantedRefs,
java.util.Set<ObjectId> wantIds,
java.util.Set<ObjectId> clientShallowCommits,
int deepenSince,
java.util.List<java.lang.String> deepenNotRefs,
int depth,
FilterSpec filterSpec,
boolean doneReceived,
java.util.Set<java.lang.String> clientCapabilities,
java.lang.String agent,
java.util.List<java.lang.String> serverOptions) |
FetchV2Request(java.util.List<ObjectId> peerHas,
java.util.List<java.lang.String> wantedRefs,
java.util.Set<ObjectId> wantIds,
java.util.Set<ObjectId> clientShallowCommits,
int deepenSince,
java.util.List<java.lang.String> deepenNotRefs,
int depth,
FilterSpec filterSpec,
boolean doneReceived,
java.util.Set<java.lang.String> clientCapabilities,
java.lang.String agent,
java.util.List<java.lang.String> serverOptions) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
AbstractTreeIterator.getEntryObjectId()
Get the object id of the current entry.
|
ObjectId |
EmptyTreeIterator.getEntryObjectId()
Get the object id of the current entry.
|
ObjectId |
TreeWalk.getObjectId(int nth)
Obtain the ObjectId for the current entry.
|
Modifier and Type | Method and Description |
---|---|
static ObjectId |
ChangeIdUtil.computeChangeId(ObjectId treeId,
ObjectId firstParentId,
PersonIdent author,
PersonIdent committer,
java.lang.String message)
Compute a Change-Id.
|
Modifier and Type | Method and Description |
---|---|
static ObjectId |
ChangeIdUtil.computeChangeId(ObjectId treeId,
ObjectId firstParentId,
PersonIdent author,
PersonIdent committer,
java.lang.String message)
Compute a Change-Id.
|
static java.lang.String |
ChangeIdUtil.insertId(java.lang.String message,
ObjectId changeId)
Find the right place to insert a Change-Id and return it.
|
static java.lang.String |
ChangeIdUtil.insertId(java.lang.String message,
ObjectId changeId,
boolean replaceExisting)
Find the right place to insert a Change-Id and return it.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
SHA1.toObjectId()
Finish the digest and return the resulting hash.
|
(package private) ObjectId |
SHA1.State.toObjectId() |
Constructor and Description |
---|
Sha1CollisionException(ObjectId id)
Initialize with default message.
|