Package | Description |
---|---|
org.eclipse.jgit.events |
Events and listener interfaces.
|
org.eclipse.jgit.gitrepo | |
org.eclipse.jgit.internal.ketch |
Distributed consensus system built on Git.
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.pack |
Reading/writing Git pack files.
|
org.eclipse.jgit.lfs.internal | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.revwalk |
Walking revision graphs (commit history).
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
WorkingTreeModifiedEvent.getDeleted()
Retrieves the
Collection of repository-relative paths
of files that were deleted. |
java.util.Collection<java.lang.String> |
WorkingTreeModifiedEvent.getModified()
Retrieves the
Collection of repository-relative paths
of files that were modified (added or updated). |
Modifier and Type | Method and Description |
---|---|
java.util.List<RepoProject> |
ManifestParser.getFilteredProjects()
Getter for filterdProjects.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ObjectId |
KetchReplica.getId(Ref ref) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
RefDirectory.LooseUnpeeled.getObjectId() |
Modifier and Type | Method and Description |
---|---|
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) |
LooseNonTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id) |
LoosePeeledTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id,
ObjectId p) |
LoosePeeledTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id,
ObjectId p) |
LoosePeeledTag(FileSnapshot snapshot,
java.lang.String refName,
ObjectId id,
ObjectId p) |
LooseSymbolicRef(FileSnapshot snapshot,
java.lang.String refName,
Ref target) |
LooseSymbolicRef(FileSnapshot snapshot,
java.lang.String refName,
Ref target) |
LooseUnpeeled(FileSnapshot snapShot,
java.lang.String refName,
ObjectId id) |
LooseUnpeeled(FileSnapshot snapShot,
java.lang.String refName,
ObjectId id) |
Modifier and Type | Method and Description |
---|---|
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.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) |
void |
PackWriter.preparePack(java.util.Iterator<RevObject> objectsSource)
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,
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.
|
Modifier and Type | Method and Description |
---|---|
static HttpConnection |
LfsConnectionFactory.getLfsContentConnection(Repository repo,
Protocol.Action action,
java.lang.String method)
Create a connection for the specified
Protocol.Action . |
Modifier and Type | Method and Description |
---|---|
abstract AttributesNodeProvider |
Repository.createAttributesNodeProvider()
Create a new
AttributesNodeProvider . |
java.util.Map<java.lang.String,Ref> |
RefDatabase.exactRef(java.lang.String... refs)
Read the specified references.
|
java.util.Set<ObjectId> |
Repository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
abstract java.util.List<Ref> |
RefDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.
|
java.util.Map<java.lang.String,Ref> |
Repository.getAllRefs()
Get mutable map of all known refs, including symrefs like HEAD that may
not point to any object yet.
|
java.util.Map<AnyObjectId,java.util.Set<Ref>> |
Repository.getAllRefsByPeeledObjectId()
Get a map with all objects referenced by a peeled ref.
|
abstract StoredConfig |
Repository.getConfig()
Get the configuration of this repository.
|
java.util.Collection<java.lang.String> |
RefDatabase.getConflictingNames(java.lang.String name)
Determine if a proposed reference cannot coexist with existing ones.
|
java.io.File |
Repository.getIndexFile()
Get the index file location or
null if repository isn't local. |
Ref |
ObjectIdRef.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
Ref |
Ref.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
Ref |
SymbolicRef.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
ListenerList |
Repository.getListenerList()
Get listeners observing only events on this repository.
|
java.lang.String |
ObjectIdRef.getName()
What this ref is called within the repository.
|
java.lang.String |
Ref.getName()
What this ref is called within the repository.
|
java.lang.String |
SymbolicRef.getName()
What this ref is called within the repository.
|
abstract ObjectDatabase |
Repository.getObjectDatabase()
Get the object database which stores this repository's data.
|
ObjectId |
ObjectIdRef.PeeledTag.getPeeledObjectId() |
abstract RefDatabase |
Repository.getRefDatabase()
Get the reference database which stores the reference namespace.
|
abstract java.util.Map<java.lang.String,Ref> |
RefDatabase.getRefs(java.lang.String prefix)
Get a section of the reference namespace.
|
java.util.List<RefSpec> |
DefaultTypedConfigGetter.getRefSpecs(Config config,
java.lang.String section,
java.lang.String subsection,
java.lang.String name)
|
java.util.List<RefSpec> |
TypedConfigGetter.getRefSpecs(Config config,
java.lang.String section,
java.lang.String subsection,
java.lang.String name)
|
java.util.Set<java.lang.String> |
Repository.getRemoteNames()
Get the names of all known remotes
|
RepositoryState |
Repository.getRepositoryState()
Get the repository state
|
Ref.Storage |
ObjectIdRef.getStorage()
How was this ref obtained?
|
Ref.Storage |
Ref.getStorage()
How was this ref obtained?
|
Ref.Storage |
SymbolicRef.getStorage()
How was this ref obtained?
|
java.util.Map<java.lang.String,Ref> |
Repository.getTags()
Get mutable map of all tags
|
Ref |
ObjectIdRef.getTarget()
Get the reference this reference points to, or
this . |
Ref |
Ref.getTarget()
Get the reference this reference points to, or
this . |
Ref |
SymbolicRef.getTarget()
Get the reference this reference points to, or
this . |
java.io.File |
Repository.getWorkTree()
Get the root directory of the working tree, where files are checked out
for viewing and editing.
|
DirCache |
Repository.lockDirCache()
Create a new in-core index representation, lock it, and read from disk.
|
BatchRefUpdate |
RefDatabase.newBatchUpdate()
Create a new batch update to attempt on this database.
|
ObjectInserter |
Repository.newObjectInserter()
Create a new inserter to create objects in
Repository.getObjectDatabase() . |
ObjectReader |
Repository.newObjectReader()
Create a new reader to read objects from
Repository.getObjectDatabase() . |
abstract RefRename |
RefDatabase.newRename(java.lang.String fromName,
java.lang.String toName)
Create a new update command to rename a reference.
|
abstract RefUpdate |
RefDatabase.newUpdate(java.lang.String name,
boolean detach)
Create a new update command to create, modify or delete a reference.
|
ObjectLoader |
Repository.open(AnyObjectId objectId)
Open an object from this repository.
|
ObjectLoader |
Repository.open(AnyObjectId objectId,
int typeHint)
Open an object from this repository.
|
abstract Ref |
RefDatabase.peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.
|
Ref |
Repository.peel(Ref ref)
Peel a possibly unpeeled reference to an annotated tag.
|
DirCache |
Repository.readDirCache()
Create a new in-core index representation and read an index from disk.
|
java.util.List<RebaseTodoLine> |
Repository.readRebaseTodo(java.lang.String path,
boolean includeComments)
Read a file formatted like the git-rebase-todo file.
|
RefRename |
Repository.renameRef(java.lang.String fromRef,
java.lang.String toRef)
Create a command to rename a ref in this repository
|
static java.lang.String |
Repository.shortenRefName(java.lang.String refName)
Get a shortened more user friendly ref name
|
static java.lang.String |
Repository.stripWorkDir(java.io.File workDir,
java.io.File file)
Strip work dir and return normalized repository path.
|
java.lang.String |
ObjectIdRef.toString() |
java.lang.String |
Repository.toString() |
RefUpdate |
Repository.updateRef(java.lang.String ref)
Create a command to update, create or delete a ref in this repository.
|
RefUpdate |
Repository.updateRef(java.lang.String ref,
boolean detach)
Create a command to update, create or delete a ref in this repository.
|
Modifier and Type | Method and Description |
---|---|
static void |
RepositoryCache.close(Repository db)
Close and remove a repository from the cache.
|
(package private) static boolean |
RepositoryCache.isCached(Repository repo) |
private void |
ObjectChecker.report(ObjectChecker.ErrorType err,
AnyObjectId id,
java.lang.String why) |
Constructor and Description |
---|
ObjectIdRef(Ref.Storage st,
java.lang.String name,
ObjectId id)
Create a new ref pairing.
|
ObjectIdRef(Ref.Storage st,
java.lang.String name,
ObjectId id)
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)
Create a new ref pairing.
|
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)
Create a new ref pairing.
|
PeeledTag(Ref.Storage st,
java.lang.String name,
ObjectId id,
ObjectId p)
Create a new ref pairing.
|
SymbolicRef(java.lang.String refName,
Ref target)
Create a new ref pairing.
|
SymbolicRef(java.lang.String refName,
Ref target)
Create a new ref pairing.
|
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)
Create a new ref pairing.
|
Modifier and Type | Method and Description |
---|---|
RevFilter |
RevWalk.getRevFilter()
Get the currently configured commit filter.
|
TreeFilter |
RevWalk.getTreeFilter()
Get the tree filter used to simplify commits by modified paths.
|
RevObject |
RevWalk.lookupAny(AnyObjectId id,
int type)
Locate a reference to any object without loading it.
|
RevBlob |
RevWalk.lookupBlob(AnyObjectId id)
Locate a reference to a blob without loading it.
|
RevCommit |
RevWalk.lookupCommit(AnyObjectId id)
Locate a reference to a commit without loading it.
|
RevTag |
RevWalk.lookupTag(AnyObjectId id)
Locate a reference to a tag without loading it.
|
RevTree |
RevWalk.lookupTree(AnyObjectId id)
Locate a reference to a tree without loading it.
|
RevObject |
RevWalk.parseAny(AnyObjectId id)
Locate a reference to any object and immediately parse its headers.
|
RevCommit |
RevWalk.parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.
|
RevTag |
RevWalk.parseTag(AnyObjectId id)
Locate a reference to an annotated tag and immediately parse its content.
|
RevTree |
RevWalk.parseTree(AnyObjectId id)
Locate a reference to a tree.
|
Modifier and Type | Method and Description |
---|---|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(java.lang.String oldTarget,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a symbolic reference's target.
|
static ReceiveCommand |
ReceiveCommand.link(java.lang.String oldTarget,
java.lang.String newTarget,
java.lang.String name)
Create a command to switch a symbolic reference's target.
|
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.
|
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.
|
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.
|