Package | Description |
---|---|
org.eclipse.jgit.events |
Events and listener interfaces.
|
org.eclipse.jgit.gitrepo | |
org.eclipse.jgit.ignore |
Ignore rule parser/matcher (for .gitignore entries).
|
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.transport.parser | |
org.eclipse.jgit.internal.transport.ssh | |
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.
|
org.eclipse.jgit.transport.http | |
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
WorkingTreeModifiedEvent.getDeleted()
Retrieves the
Collection of repository-relative paths
of files that were deleted. |
Collection<String> |
WorkingTreeModifiedEvent.getModified()
Retrieves the
Collection of repository-relative paths
of files that were modified (added or updated). |
Modifier and Type | Method and Description |
---|---|
byte[] |
RepoCommand.RemoteFile.getContents()
Contents of the file.
|
FileMode |
RepoCommand.RemoteFile.getFileMode() |
List<RepoProject> |
ManifestParser.getFilteredProjects()
Getter for filterdProjects.
|
RepoCommand.RemoteFile |
RepoCommand.RemoteReader.readFileWithMode(String uri,
String ref,
String path)
Read contents and mode (i.e.
|
Constructor and Description |
---|
RemoteFile(byte[] contents,
FileMode fileMode) |
RemoteFile(byte[] contents,
FileMode fileMode) |
Modifier and Type | Method and Description |
---|---|
static IMatcher |
IMatcher.createPathMatcher(String pattern,
boolean dirOnly)
Creates a path matcher for the given pattern.
|
Modifier and Type | Method and Description |
---|---|
static IMatcher |
IMatcher.createPathMatcher(String pattern,
boolean dirOnly)
Creates a path matcher for the given pattern.
|
Modifier and Type | Method and Description |
---|---|
DfsObjDatabase.PackSource |
DfsPackDescription.getPackSource()
Get the source of the pack.
|
Modifier and Type | Method and Description |
---|---|
DfsPackDescription |
DfsPackDescription.setPackSource(DfsObjDatabase.PackSource source)
Set the source of the pack.
|
Constructor and Description |
---|
DfsPackDescription(DfsRepositoryDescription repoDesc,
String name,
DfsObjDatabase.PackSource packSource)
Initialize a description by pack name and repository.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Ref> |
RefDirectory.exactRef(String... refs)
Read the specified references.
|
BatchRefUpdate |
FileReftableDatabase.newBatchUpdate()
Create a new batch update to attempt on this database.
|
Modifier and Type | Method and Description |
---|---|
void |
GC.setPackConfig(PackConfig pconfig)
Set the PackConfig used when (re-)writing packfiles.
|
Modifier and Type | Method and Description |
---|---|
void |
PackWriter.preparePack(Iterator<RevObject> objectsSource)
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,
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.setFilterSpec(FilterSpec filter) |
Constructor and Description |
---|
PackfileUriConfig(PacketLineOut pckOut,
Collection<String> protocolsSupported,
CachedPackUriProvider cachedPackUriProvider) |
PackfileUriConfig(PacketLineOut pckOut,
Collection<String> protocolsSupported,
CachedPackUriProvider cachedPackUriProvider) |
PackfileUriConfig(PacketLineOut pckOut,
Collection<String> protocolsSupported,
CachedPackUriProvider cachedPackUriProvider) |
Modifier and Type | Method and Description |
---|---|
static FirstCommand |
FirstCommand.fromLine(String line)
Parse the first line of a receive-pack request.
|
Set<String> |
FirstCommand.getCapabilities() |
String |
FirstCommand.getLine() |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
OpenSshConfigFile.HostEntry.getMultiValuedOptions()
Retrieves an unmodifiable map of all multi-valued options, with
case-insensitive lookup by keys.
|
Map<String,String> |
OpenSshConfigFile.HostEntry.getOptions()
Retrieves an unmodifiable map of all single-valued options, with
case-insensitive lookup by keys.
|
OpenSshConfigFile.HostEntry |
OpenSshConfigFile.lookup(String hostName,
int port,
String userName)
Locate the configuration for a specific host request.
|
Modifier and Type | Method and Description |
---|---|
OpenSshConfigFile.HostEntry |
OpenSshConfigFile.lookup(String hostName,
int port,
String userName)
Locate the configuration for a specific host request.
|
Constructor and Description |
---|
OpenSshConfigFile(File home,
File config,
String localUserName)
Creates a new
OpenSshConfigFile that will read the config from
file config use the given file home as "home" directory. |
OpenSshConfigFile(File home,
File config,
String localUserName)
Creates a new
OpenSshConfigFile that will read the config from
file config use the given file home as "home" directory. |
OpenSshConfigFile(File home,
File config,
String localUserName)
Creates a new
OpenSshConfigFile that will read the config from
file config use the given file home as "home" directory. |
Modifier and Type | Method and Description |
---|---|
abstract AttributesNodeProvider |
Repository.createAttributesNodeProvider()
Create a new
AttributesNodeProvider . |
Map<String,Ref> |
RefDatabase.exactRef(String... refs)
Read the specified references.
|
Set<ObjectId> |
Repository.getAdditionalHaves()
Objects known to exist but not expressed by
Repository.getAllRefs() . |
abstract List<Ref> |
RefDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.
|
Map<String,Ref> |
Repository.getAllRefs()
Deprecated.
use
getRefDatabase().getRefs() instead. |
Map<AnyObjectId,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.
|
Collection<String> |
RefDatabase.getConflictingNames(String name)
Determine if a proposed reference cannot coexist with existing ones.
|
File |
Repository.getIndexFile()
Get the index file location or
null if repository isn't local. |
Ref |
SymbolicRef.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
Ref |
Ref.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
Ref |
ObjectIdRef.getLeaf()
Traverse target references until
Ref.isSymbolic() is false. |
ListenerList |
Repository.getListenerList()
Get listeners observing only events on this repository.
|
String |
SymbolicRef.getName()
What this ref is called within the repository.
|
String |
Ref.getName()
What this ref is called within the repository.
|
String |
ObjectIdRef.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.
|
List<Ref> |
RefDatabase.getRefs()
Returns all refs.
|
abstract Map<String,Ref> |
RefDatabase.getRefs(String prefix)
Deprecated.
use
RefDatabase.getRefsByPrefix(java.lang.String) instead |
List<Ref> |
RefDatabase.getRefsByPrefix(String... prefixes)
Returns refs whose names start with one of the given prefixes.
|
List<Ref> |
RefDatabase.getRefsByPrefix(String prefix)
Returns refs whose names start with a given prefix.
|
List<RefSpec> |
TypedConfigGetter.getRefSpecs(Config config,
String section,
String subsection,
String name)
|
List<RefSpec> |
DefaultTypedConfigGetter.getRefSpecs(Config config,
String section,
String subsection,
String name)
|
Set<String> |
Repository.getRemoteNames()
Get the names of all known remotes
|
RepositoryState |
Repository.getRepositoryState()
Get the repository state
|
Ref.Storage |
SymbolicRef.getStorage()
How was this ref obtained?
|
Ref.Storage |
Ref.getStorage()
How was this ref obtained?
|
Ref.Storage |
ObjectIdRef.getStorage()
How was this ref obtained?
|
Map<String,Ref> |
Repository.getTags()
Deprecated.
use
getRefDatabase().getRefsByPrefix(R_TAGS) instead |
Ref |
SymbolicRef.getTarget()
Get the reference this reference points to, or
this . |
Ref |
Ref.getTarget()
Get the reference this reference points to, or
this . |
Ref |
ObjectIdRef.getTarget()
Get the reference this reference points to, or
this . |
Set<Ref> |
RefDatabase.getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the given
ObjectId . |
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(String fromName,
String toName)
Create a new update command to rename a reference.
|
abstract RefUpdate |
RefDatabase.newUpdate(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.
|
Ref |
Repository.peel(Ref ref)
Deprecated.
use
getRefDatabase().peel(ref) instead. |
abstract Ref |
RefDatabase.peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.
|
DirCache |
Repository.readDirCache()
Create a new in-core index representation and read an index from disk.
|
List<RebaseTodoLine> |
Repository.readRebaseTodo(String path,
boolean includeComments)
Read a file formatted like the git-rebase-todo file.
|
static ObjectId |
ObjectIdSerializer.readWithoutMarker(InputStream in)
Read a non-null
ObjectId from the stream. |
RefRename |
Repository.renameRef(String fromRef,
String toRef)
Create a command to rename a ref in this repository
|
static String |
Repository.shortenRefName(String refName)
Get a shortened more user friendly ref name
|
static String |
Repository.stripWorkDir(File workDir,
File file)
Strip work dir and return normalized repository path.
|
String |
Repository.toString() |
String |
ObjectIdRef.toString() |
RefUpdate |
Repository.updateRef(String ref)
Create a command to update, create or delete a ref in this repository.
|
RefUpdate |
Repository.updateRef(String ref,
boolean detach)
Create a command to update, create or delete a ref in this repository.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
GpgSigner.canLocateSigningKey(String gpgSigningKey,
PersonIdent committer,
CredentialsProvider credentialsProvider)
Indicates if a signing key is available for the specified committer
and/or signing key.
|
static void |
RepositoryCache.close(Repository db)
Close and remove a repository from the cache.
|
abstract void |
GpgSigner.sign(CommitBuilder commit,
String gpgSigningKey,
PersonIdent committer,
CredentialsProvider credentialsProvider)
Signs the specified commit.
|
abstract void |
GpgSigner.sign(CommitBuilder commit,
String gpgSigningKey,
PersonIdent committer,
CredentialsProvider credentialsProvider)
Signs the specified commit.
|
static void |
ObjectIdSerializer.writeWithoutMarker(OutputStream out,
AnyObjectId id)
Write a non-null
ObjectId to the stream. |
Constructor and Description |
---|
GpgSignature(byte[] signature)
Creates a new instance with the specified signature
|
ObjectIdRef(Ref.Storage st,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing.
|
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)
Create a new ref pairing.
|
PeeledNonTag(Ref.Storage st,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
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)
Create a new ref pairing.
|
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.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p,
long updateIndex)
Create a new ref pairing with update index.
|
PeeledTag(Ref.Storage st,
String name,
ObjectId id,
ObjectId p,
long updateIndex)
Create a new ref pairing with update index.
|
SymbolicRef(String refName,
Ref target)
Create a new ref pairing.
|
SymbolicRef(String refName,
Ref target)
Create a new ref pairing.
|
SymbolicRef(String refName,
Ref target,
long updateIndex)
Create a new ref pairing.
|
SymbolicRef(String refName,
Ref target,
long updateIndex)
Create a new ref pairing.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id)
Create a new ref pairing.
|
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.
|
Unpeeled(Ref.Storage st,
String name,
ObjectId id,
long updateIndex)
Create a new ref pairing with update index.
|
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 |
---|---|
Map<String,List<String>> |
SshConfigStore.HostConfig.getMultiValuedOptions()
Retrieves an unmodifiable map of all multi- or list-valued options,
with case-insensitive lookup by keys.
|
Map<String,String> |
SshConfigStore.HostConfig.getOptions()
Retrieves an unmodifiable map of all single-valued options, with
case-insensitive lookup by keys.
|
List<String> |
LsRefsV2Request.getServerOptions()
Get application-specific options provided by the client using
--server-option.
|
List<String> |
FetchV2Request.getServerOptions()
Options received in server-option lines.
|
List<String> |
FetchV2Request.getWantedRefs() |
SshConfigStore.HostConfig |
SshConfigStore.lookup(String hostName,
int port,
String userName)
Locate the configuration for a specific host request.
|
Modifier and Type | Method and Description |
---|---|
LsRefsV2Request.Builder |
LsRefsV2Request.Builder.addServerOption(String value)
Records an application-specific option supplied in a server-option
line, for later retrieval with
LsRefsV2Request.getServerOptions() . |
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
String newTarget,
String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
String newTarget,
String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(ObjectId oldId,
String newTarget,
String name)
Create a command to switch a reference from object to symbolic.
|
static ReceiveCommand |
ReceiveCommand.link(String oldTarget,
String newTarget,
String name)
Create a command to switch a symbolic reference's target.
|
static ReceiveCommand |
ReceiveCommand.link(String oldTarget,
String newTarget,
String name)
Create a command to switch a symbolic reference's target.
|
SshConfigStore.HostConfig |
SshConfigStore.lookup(String hostName,
int port,
String userName)
Locate the configuration for a specific host request.
|
void |
Transport.setFilterSpec(FilterSpec filter) |
static ReceiveCommand |
ReceiveCommand.unlink(String oldTarget,
ObjectId newId,
String name)
Create a command to switch a reference from symbolic to object.
|
static ReceiveCommand |
ReceiveCommand.unlink(String oldTarget,
ObjectId newId,
String name)
Create a command to switch a reference from symbolic to object.
|
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 |
---|---|
String |
JDKHttpConnection.getHeaderField(String name)
Get header field.
|
String |
HttpConnection.getHeaderField(String name)
Get header field.
|
List<String> |
JDKHttpConnection.getHeaderFields(String name) |
List<String> |
HttpConnection.getHeaderFields(String name)
Get all values of given header field.
|
Modifier and Type | Method and Description |
---|---|
Duration |
FS.FileStoreAttributes.getFsTimestampResolution() |
Modifier and Type | Method and Description |
---|---|
static FS.FileStoreAttributes |
FS.getFileStoreAttributes(Path dir)
Get cached FileStore attributes, if not yet available measure them using
a probe file under the given directory.
|
V |
SimpleLruCache.put(K key,
V value)
Maps the specified key to the specified value in this cache.
|
V |
SimpleLruCache.put(K key,
V value)
Maps the specified key to the specified value in this cache.
|
Constructor and Description |
---|
FileStoreAttributes(Duration fsTimestampResolution)
Construct a FileStoreAttributeCache entry for the given filesystem
timestamp resolution
|
Copyright © 2020 Eclipse JGit Project. All rights reserved.