Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.api.errors |
Exceptions thrown by API commands.
|
org.eclipse.jgit.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.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.transport.connectivity | |
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.opt | |
org.eclipse.jgit.revplot |
Building/rendering revision graphs.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
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 | Method and Description |
---|---|
ObjectId |
StashDropCommand.call() |
ObjectId |
StashApplyCommand.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
|
Modifier and Type | Method and Description |
---|---|
Map<ObjectId,String> |
NameRevCommand.call() |
Modifier and Type | Method and Description |
---|---|
NameRevCommand |
NameRevCommand.add(ObjectId id)
Add an object to search for.
|
void |
ArchiveCommand.Format.putEntry(T out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
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
|
Modifier and Type | Method and Description |
---|---|
NameRevCommand |
NameRevCommand.add(Iterable<ObjectId> ids)
Add multiple objects to search for.
|
BlameCommand |
BlameCommand.reverse(AnyObjectId start,
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,
Map<String,MergeResult<?>> lowLevelResults)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
Map<String,MergeResult<?>> lowLevelResults)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
Map<String,MergeResult<?>> lowLevelResults,
Map<String,ResolveMerger.MergeFailureReason> failingPaths,
String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
Map<String,MergeResult<?>> lowLevelResults,
Map<String,ResolveMerger.MergeFailureReason> failingPaths,
String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
Map<String,MergeResult<?>> lowLevelResults,
String description)
Constructor for MergeResult.
|
MergeResult(ObjectId newHead,
ObjectId base,
ObjectId[] mergedCommits,
MergeResult.MergeStatus mergeStatus,
MergeStrategy mergeStrategy,
Map<String,MergeResult<?>> lowLevelResults,
String description)
Constructor for MergeResult.
|
Constructor and Description |
---|
WrongObjectTypeException(ObjectId id,
int type)
Construct a
WrongObjectTypeException for the specified object id,
giving the expected type. |
Modifier and Type | Method and Description |
---|---|
void |
Tbz2Format.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TarFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TxzFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
TgzFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
void |
ZipFormat.putEntry(org.apache.commons.compress.archivers.ArchiveOutputStream out,
ObjectId tree,
String path,
FileMode mode,
ObjectLoader loader)
Write an entry to an archive.
|
Modifier and Type | Method and Description |
---|---|
BlameGenerator |
BlameGenerator.reverse(AnyObjectId start,
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(String path,
ObjectId id)
Open the object.
|
abstract long |
ContentSource.size(String path,
ObjectId id)
Determine the size of the object.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
DirCacheTree.getObjectId()
Get the tree's ObjectId.
|
ObjectId |
DirCacheEntry.getObjectId()
Obtain the ObjectId for the entry.
|
ObjectId |
DirCache.writeTree(ObjectInserter ow)
Write all index trees to the object store, returning the root tree.
|
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.
|
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 |
---|---|
Collection<ObjectId> |
AmbiguousObjectException.getCandidates()
Get the matching candidates (or at least a subset of them)
|
Constructor and Description |
---|
CorruptObjectException(ObjectId id,
String why)
Construct a CorruptObjectException for reporting a problem specified
object id
|
IncorrectObjectTypeException(ObjectId id,
int type)
Construct an IncorrectObjectTypeException for the specified object id.
|
IncorrectObjectTypeException(ObjectId id,
String type)
Construct an IncorrectObjectTypeException for the specified object id.
|
MissingObjectException(ObjectId id,
int type)
Construct a MissingObjectException for the specified object id.
|
MissingObjectException(ObjectId id,
String type)
Construct a MissingObjectException for the specified object id.
|
Constructor and Description |
---|
AmbiguousObjectException(AbbreviatedObjectId id,
Collection<ObjectId> candidates)
Construct a MissingObjectException for the specified object id.
|
MissingBundlePrerequisiteException(URIish uri,
Map<ObjectId,String> missingCommits)
Constructs a MissingBundlePrerequisiteException for a set of objects.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
RepoCommand.RemoteReader.sha1(String uri,
String ref)
Read a remote ref sha1.
|
ObjectId |
RepoCommand.DefaultRemoteReader.sha1(String uri,
String ref) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
FsckError.CorruptObject.getId() |
Modifier and Type | Method and Description |
---|---|
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 | Method and Description |
---|---|
<T extends ObjectId> |
DfsReader.getObjectSize(Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object size lookup.
|
<T extends ObjectId> |
DfsReader.open(Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object opening.
|
Modifier and Type | Method and Description |
---|---|
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,
InputStream in)
Insert a single object into the store, returning its unique name.
|
Modifier and Type | Method and Description |
---|---|
Set<ObjectId> |
DfsReader.getShallowCommits()
Returns IDs for those commits which should be considered as shallow.
|
Collection<ObjectId> |
DfsReader.resolve(AbbreviatedObjectId id)
Resolve an abbreviated ObjectId to its full form.
|
Modifier and Type | Method and Description |
---|---|
Set<Ref> |
DfsReftableDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
Modifier and Type | Class and Description |
---|---|
static class |
PackBitmapIndexRemapper.Entry
An entry in the old PackBitmapIndex.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
PackReverseIndex.findObject(long offset)
Search for object id with the specified start offset in this pack
(reverse) index.
|
ObjectId |
ReflogEntryImpl.getNewId()
Get the commit id after the change
|
ObjectId |
PackBitmapIndexRemapper.getObject(int position)
Get the object at the bitmap position.
|
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 |
PackIndex.getObjectId(int 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 |
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 |
PackInserter.insert(int type,
long len,
InputStream in)
Insert a single object into the store, returning its unique name.
|
ObjectId |
PackIndex.MutableEntry.toObjectId() |
Modifier and Type | Method and Description |
---|---|
Set<ObjectId> |
FileRepository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
Modifier and Type | Method and Description |
---|---|
ReflogWriter |
ReflogWriter.log(String refName,
ObjectId oldId,
ObjectId newId,
PersonIdent ident,
String message)
Write the given entry information to the ref's log
|
void |
LockFile.write(ObjectId id)
Write an ObjectId and LF to the temporary file.
|
Modifier and Type | Method and Description |
---|---|
void |
GC.prune(Set<ObjectId> objectsToKeep)
Like "git prune" this method tries to prune all loose objects which are
unreferenced.
|
abstract void |
PackIndex.resolve(Set<ObjectId> matches,
AbbreviatedObjectId id,
int matchLimit)
Find objects matching the prefix abbreviation.
|
Constructor and Description |
---|
PackFile(File directory,
ObjectId id,
PackExt ext)
Create a PackFile for a pack or related file.
|
Modifier and Type | Class and Description |
---|---|
class |
BitmapCommit
A commit object for which a bitmap index should be built.
|
class |
ObjectToPack
Per-object state used by
PackWriter . |
Modifier and Type | Field and Description |
---|---|
static Set<ObjectId> |
PackWriter.NONE
Empty set of objects for
preparePack() . |
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 |
---|---|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
Set<? extends ObjectId> interestingObjects,
Set<? extends ObjectId> uninterestingObjects,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
Set<? extends ObjectId> interestingObjects,
Set<? extends ObjectId> uninterestingObjects,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
ObjectWalk walk,
Set<? extends ObjectId> interestingObjects,
Set<? extends ObjectId> uninterestingObjects,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.preparePack(ProgressMonitor countingMonitor,
Set<? extends ObjectId> want,
Set<? extends ObjectId> have,
Set<? extends ObjectId> shallow,
Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.
|
void |
PackWriter.setClientShallowCommits(Set<ObjectId> clientShallowCommits)
Records the set of shallow commits in the client.
|
void |
PackWriter.setShallowPack(int depth,
Collection<? extends ObjectId> unshallow)
Configure this pack for a shallow clone.
|
void |
PackWriter.setTagTargets(Set<ObjectId> objects)
Set the tag targets that should be hoisted earlier during packing.
|
Modifier and Type | Method and Description |
---|---|
Set<Ref> |
ReftableDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
void |
ReftableWriter.writeLog(String ref,
long updateIndex,
PersonIdent who,
ObjectId oldId,
ObjectId newId,
String message)
Write one reflog entry to the reftable.
|
Modifier and Type | Method and Description |
---|---|
void |
IterativeConnectivityChecker.checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo,
Set<ObjectId> advertisedHaves,
ProgressMonitor pm) |
void |
FullConnectivityChecker.checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo,
Set<ObjectId> haves,
ProgressMonitor pm) |
void |
IterativeConnectivityChecker.setForcedHaves(Set<ObjectId> forcedHaves)
Sets additional haves that client can depend on (e.g.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
TestRepository.lightweightTag(String name,
ObjectId obj)
Tag an object using a lightweight tag.
|
ObjectId |
TestRepository.unparsedCommit(int secDelta,
RevTree tree,
ObjectId... parents)
Create a new, unparsed commit.
|
ObjectId |
TestRepository.unparsedCommit(ObjectId... parents)
Create a new, unparsed commit.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RepositoryTestCase.createBranch(ObjectId objectId,
String branchName)
Create a branch
|
ObjectId |
TestRepository.lightweightTag(String name,
ObjectId obj)
Tag an object using a lightweight tag.
|
TestRepository.CommitBuilder |
TestRepository.CommitBuilder.setTopLevelTree(ObjectId treeId)
Set top level tree
|
ObjectId |
TestRepository.unparsedCommit(int secDelta,
RevTree tree,
ObjectId... parents)
Create a new, unparsed commit.
|
ObjectId |
TestRepository.unparsedCommit(ObjectId... parents)
Create a new, unparsed commit.
|
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.
|
static ObjectId |
Constants.EMPTY_TREE_ID
Well-known object ID for the empty tree.
|
Modifier and Type | Method and Description |
---|---|
<T extends ObjectId> |
ObjectReader.getObjectSize(Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object size lookup.
|
<T extends ObjectId> |
ObjectReader.Filter.getObjectSize(Iterable<T> objectIds,
boolean reportMissing) |
<T extends ObjectId> |
ObjectReader.open(Iterable<T> objectIds,
boolean reportMissing)
Asynchronous object opening.
|
<T extends ObjectId> |
ObjectReader.Filter.open(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.
|
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(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 |
ObjectIdRef.getObjectId()
Cached value of this ref.
|
ObjectId |
SymbolicRef.getObjectId()
Cached value of this ref.
|
ObjectId |
TagBuilder.getObjectId()
Get the object this tag refers to.
|
ObjectId |
AsyncObjectSizeQueue.getObjectId()
Get the ObjectId of the current object.
|
ObjectId |
AsyncObjectLoaderQueue.getObjectId()
Get the ObjectId of the current object.
|
ObjectId |
Ref.getObjectId()
Cached value of this ref.
|
abstract ObjectId |
BitmapObject.getObjectId()
Get the name of this object.
|
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 |
ObjectIdRef.Unpeeled.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledTag.getPeeledObjectId() |
ObjectId |
ObjectIdRef.PeeledNonTag.getPeeledObjectId() |
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 |
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) |
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,
InputStream in)
Compute the name of an object, without inserting it.
|
ObjectId |
ObjectInserter.Filter.idFor(int objectType,
long length,
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,
InputStream in)
Insert a single object into the store, returning its unique name.
|
ObjectId |
ObjectInserter.Formatter.insert(int objectType,
long length,
InputStream in) |
ObjectId |
ObjectInserter.Filter.insert(int objectType,
long length,
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(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(InputStream in)
Read a non-null
ObjectId from the stream. |
ObjectId |
Repository.resolve(String revstr)
Parse a git revision string and return an object id.
|
ObjectId |
MutableObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
ObjectId |
AbbreviatedObjectId.toObjectId()
A complete ObjectId; null if
AbbreviatedObjectId.isComplete() is false |
abstract ObjectId |
AnyObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
ObjectId |
ObjectId.toObjectId()
Obtain an immutable copy of this current object name value.
|
static ObjectId |
ObjectId.zeroId()
Get the special all-null ObjectId.
|
Modifier and Type | Method and Description |
---|---|
Set<ObjectId> |
Repository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
abstract Set<ObjectId> |
ObjectReader.getShallowCommits()
Returns IDs for those commits which should be considered as shallow.
|
Set<ObjectId> |
ObjectReader.Filter.getShallowCommits() |
List<ObjectId> |
Repository.readMergeHeads()
Return the information stored in the file $GIT_DIR/MERGE_HEAD.
|
abstract Collection<ObjectId> |
ObjectReader.resolve(AbbreviatedObjectId id)
Resolve an abbreviated ObjectId to its full form.
|
Collection<ObjectId> |
ObjectReader.Filter.resolve(AbbreviatedObjectId id) |
Modifier and Type | Method and Description |
---|---|
Set<Ref> |
RefDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
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 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 |
---|---|
void |
Repository.writeMergeHeads(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,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p,
long updateIndex)
Create a new ref pairing with update index.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
ResolveMerger.resultTree
merge result as tree
|
Modifier and Type | Method and Description |
---|---|
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
|
abstract ObjectId |
Merger.getResultTreeId()
Get resulting tree.
|
ObjectId |
ResolveMerger.getResultTreeId()
Get resulting tree.
|
Modifier and Type | Class and Description |
---|---|
class |
Note
In-memory representation of a single note attached to one object.
|
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.
|
ObjectId |
NoteMap.writeTree(ObjectInserter inserter)
Write this note map as a tree.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
Note(AnyObjectId noteOn,
ObjectId noteData)
A Git note about the object referenced by
noteOn . |
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 | Method and Description |
---|---|
<T extends ObjectId> |
RevWalk.parseAny(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 List<ObjectId> |
DepthWalk.getDeepenNots() |
List<ObjectId> |
DepthWalk.RevWalk.getDeepenNots() |
List<ObjectId> |
DepthWalk.ObjectWalk.getDeepenNots() |
Modifier and Type | Method and Description |
---|---|
void |
RevWalk.assumeShallow(Collection<? extends ObjectId> ids)
Assume additional commits are shallow (have no parents).
|
BitmapIndex.BitmapBuilder |
BitmapWalker.findObjects(Iterable<? extends ObjectId> start,
BitmapIndex.BitmapBuilder seen,
boolean ignoreMissing)
Return, as a bitmap, the objects reachable from the objects in start.
|
void |
DepthWalk.RevWalk.setDeepenNots(List<ObjectId> deepenNots)
Mark objects that the client specified using
--shallow-exclude.
|
Modifier and Type | Field and Description |
---|---|
Set<ObjectId> |
PackStatistics.Accumulator.clientShallowCommits
The set of shallow commits on the client.
|
Set<ObjectId> |
PackStatistics.Accumulator.interestingObjects
The set of objects to be included in the pack.
|
Set<ObjectId> |
PackStatistics.Accumulator.rootCommits
Commits with no parents.
|
Set<ObjectId> |
PackStatistics.Accumulator.uninterestingObjects
The set of objects to be excluded from the pack.
|
Modifier and Type | Method and Description |
---|---|
Set<ObjectId> |
PackStatistics.getClientShallowCommits()
Get unmodifiable collection of objects that were shallow commits on the
client.
|
Set<ObjectId> |
PackStatistics.getInterestingObjects()
Get unmodifiable collection of objects to be included in the pack.
|
Set<ObjectId> |
PackStatistics.getRootCommits()
Get unmodifiable collection of the root commits of the history.
|
Set<ObjectId> |
PackStatistics.getUninterestingObjects()
Get unmodifiable collection of objects that should be excluded from the
pack
|
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 |
SubmoduleWalk.getObjectId()
Get object id of current submodule entry
|
ObjectId |
SubmoduleConflict.getObjectId() |
Constructor and Description |
---|
SubmoduleConflict(ObjectId objectId)
Create a SubmoduleConflict for the given submodule object id
|
SubmoduleStatus(SubmoduleStatusType type,
String path,
ObjectId indexId)
Create submodule status
|
SubmoduleStatus(SubmoduleStatusType type,
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.
|
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 |
RemoteRefUpdate.getNewObjectId()
Get new object id
|
ObjectId |
TrackingRefUpdate.getNewObjectId()
Get the new value the ref will be (or was) updated to.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected Set<ObjectId> |
AbstractAdvertiseRefsHook.getAdvertisedHaves(Repository repository,
RevWalk revWalk)
Get the additional haves to advertise.
|
Set<ObjectId> |
ReceivePack.getAdvertisedObjects()
Get objects advertised to the client.
|
ObjectIdSubclassMap<ObjectId> |
PackParser.getBaseObjectIds()
Get set of objects the incoming pack assumed for delta purposes
|
ObjectIdSubclassMap<ObjectId> |
PackParser.getNewObjectIds()
Get the new objects that were sent by the user
|
List<ObjectId> |
ObjectInfoRequest.getObjectIDs() |
Set<ObjectId> |
RefAdvertiser.send(Collection<Ref> refs)
Format an advertisement for the supplied refs.
|
Set<ObjectId> |
RefAdvertiser.send(Map<String,Ref> refs)
Deprecated.
use
RefAdvertiser.send(Collection) instead. |
Modifier and Type | Method and Description |
---|---|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
String newTarget,
String name)
Create a command to switch a reference from object to symbolic.
|
protected PackedObjectInfo |
PackParser.newInfo(AnyObjectId id,
PackParser.UnresolvedDelta delta,
ObjectId deltaBase)
Construct a PackedObjectInfo instance for this parser.
|
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 |
---|---|
void |
ConnectivityChecker.checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo,
Set<ObjectId> haves,
ProgressMonitor pm)
Checks connectivity of the commit graph after pack uploading.
|
void |
UploadPack.RequestValidator.checkWants(UploadPack up,
List<ObjectId> wants)
Check a list of client wants against the request policy.
|
void |
UploadPack.AdvertisedRequestValidator.checkWants(UploadPack up,
List<ObjectId> wants) |
void |
UploadPack.ReachableCommitRequestValidator.checkWants(UploadPack up,
List<ObjectId> wants) |
void |
UploadPack.TipRequestValidator.checkWants(UploadPack up,
List<ObjectId> wants) |
void |
UploadPack.ReachableCommitTipRequestValidator.checkWants(UploadPack up,
List<ObjectId> wants) |
void |
UploadPack.AnyRequestValidator.checkWants(UploadPack up,
List<ObjectId> wants) |
protected void |
BasePackFetchConnection.doFetch(ProgressMonitor monitor,
Collection<Ref> want,
Set<ObjectId> have,
OutputStream outputStream)
Execute common ancestor negotiation and fetch the objects.
|
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
Collection<Ref> want,
Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
Collection<Ref> want,
Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
Collection<Ref> want,
Set<ObjectId> have,
OutputStream outputStream)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
Collection<Ref> want,
Set<ObjectId> have,
OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
PreUploadHookChain.onBeginNegotiateRound(UploadPack up,
Collection<? extends ObjectId> wants,
int cntOffered)
Invoked before negotiation round is started.
|
void |
PreUploadHook.onBeginNegotiateRound(UploadPack up,
Collection<? extends ObjectId> wants,
int cntOffered)
Invoked before negotiation round is started.
|
void |
PreUploadHookChain.onEndNegotiateRound(UploadPack up,
Collection<? extends ObjectId> wants,
int cntCommon,
int cntNotFound,
boolean ready)
Invoked after a negotiation round is completed.
|
void |
PreUploadHook.onEndNegotiateRound(UploadPack up,
Collection<? extends ObjectId> wants,
int cntCommon,
int cntNotFound,
boolean ready)
Invoked after a negotiation round is completed.
|
void |
PreUploadHookChain.onSendPack(UploadPack up,
Collection<? extends ObjectId> wants,
Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHookChain.onSendPack(UploadPack up,
Collection<? extends ObjectId> wants,
Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHook.onSendPack(UploadPack up,
Collection<? extends ObjectId> wants,
Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
PreUploadHook.onSendPack(UploadPack up,
Collection<? extends ObjectId> wants,
Collection<? extends ObjectId> haves)
Invoked just before a pack will be sent to the client.
|
void |
ReceivePack.setAdvertisedRefs(Map<String,Ref> allRefs,
Set<ObjectId> additionalHaves)
Set the refs advertised by this ReceivePack.
|
ObjectInfoRequest.Builder |
ObjectInfoRequest.Builder.setObjectIDs(List<ObjectId> value) |
Constructor and Description |
---|
ReceiveCommand(ObjectId oldId,
ObjectId newId,
String name)
Create a new command for
ReceivePack . |
ReceiveCommand(ObjectId oldId,
ObjectId newId,
String name,
ReceiveCommand.Type type)
Create a new command for
ReceivePack . |
RemoteRefUpdate(RemoteRefUpdate base,
ObjectId newExpectedOldObjectId)
Create a new instance of this object basing on existing instance for
configuration.
|
RemoteRefUpdate(Repository localDb,
Ref srcRef,
String remoteName,
boolean forceUpdate,
String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
String srcRef,
ObjectId srcId,
String remoteName,
boolean forceUpdate,
String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
String srcRef,
String remoteName,
boolean forceUpdate,
String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
EmptyTreeIterator.getEntryObjectId()
Get the object id of the current entry.
|
ObjectId |
AbstractTreeIterator.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,
String message)
Compute a Change-Id.
|
Modifier and Type | Method and Description |
---|---|
static ObjectId |
ChangeIdUtil.computeChangeId(ObjectId treeId,
ObjectId firstParentId,
PersonIdent author,
PersonIdent committer,
String message)
Compute a Change-Id.
|
static String |
ChangeIdUtil.insertId(String message,
ObjectId changeId)
Find the right place to insert a Change-Id and return it.
|
static String |
ChangeIdUtil.insertId(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.
|
Constructor and Description |
---|
Sha1CollisionException(ObjectId id)
Initialize with default message.
|
Copyright © 2021 Eclipse JGit Project. All rights reserved.