Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.dircache |
Reading and editing the directory cache (index).
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.junit | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.storage.file | |
org.eclipse.jgit.submodule |
Git submodule support.
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.transport.sshd | |
org.eclipse.jgit.treewalk |
Walking and comparing directory/file trees (of commits, file system).
|
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Field and Description |
---|---|
private FS |
InitCommand.fs |
private FS |
CloneCommand.fs |
Modifier and Type | Method and Description |
---|---|
static Git |
Git.open(java.io.File dir,
FS fs)
Open repository
|
InitCommand |
InitCommand.setFs(FS fs)
Set the file system abstraction to be used for repositories created by
this command.
|
CloneCommand |
CloneCommand.setFs(FS fs)
Set the file system abstraction to be used for repositories created by
this command.
|
Modifier and Type | Method and Description |
---|---|
static DirCache |
DirCache.lock(java.io.File indexLocation,
FS fs)
Create a new in-core index representation, lock it, and read from disk.
|
static DirCache |
DirCache.lock(java.io.File indexLocation,
FS fs,
IndexChangedListener indexChangedListener)
Create a new in-core index representation, lock it, and read from disk.
|
static DirCache |
DirCache.read(java.io.File indexLocation,
FS fs)
Create a new in-core index representation and read an index from disk.
|
private static void |
DirCacheCheckout.runExternalFilterCommand(Repository repo,
DirCacheEntry entry,
DirCacheCheckout.CheckoutMetadata checkoutMetadata,
ObjectLoader ol,
FS fs,
java.io.OutputStream channel) |
Constructor and Description |
---|
DirCache(java.io.File indexLocation,
FS fs)
Create a new in-core index representation.
|
Modifier and Type | Field and Description |
---|---|
private FS |
ObjectDirectory.fs |
Modifier and Type | Method and Description |
---|---|
(package private) FS |
ObjectDirectory.getFS() |
(package private) abstract FS |
FileObjectDatabase.getFS() |
(package private) FS |
CachedObjectDirectory.getFS() |
Constructor and Description |
---|
ObjectDirectory(Config cfg,
java.io.File dir,
java.io.File[] alternatePaths,
FS fs,
java.io.File shallowFile)
Initialize a reference to an on-disk object directory.
|
PackLock(java.io.File packFile,
FS fs)
Create a new lock for a pack file.
|
Modifier and Type | Method and Description |
---|---|
FileBasedConfig |
MockSystemReader.openSystemConfig(Config parent,
FS fs)
Open the gitconfig configuration found in the system-wide "etc" directory
|
FileBasedConfig |
MockSystemReader.openUserConfig(Config parent,
FS fs)
Open the git configuration found in the user home
|
Constructor and Description |
---|
MockConfig(java.io.File cfgLocation,
FS fs) |
Modifier and Type | Field and Description |
---|---|
private FS |
Repository.fs
File abstraction used to resolve paths.
|
private FS |
RepositoryCache.FileKey.fs |
private FS |
BaseRepositoryBuilder.fs |
Modifier and Type | Method and Description |
---|---|
FS |
Repository.getFS()
Get the used file system abstraction.
|
FS |
BaseRepositoryBuilder.getFS()
Get the file system abstraction, or null if not set.
|
protected FS |
BaseRepositoryBuilder.safeFS()
Get the configured FS, or
DETECTED . |
Modifier and Type | Method and Description |
---|---|
static RepositoryCache.FileKey |
RepositoryCache.FileKey.exact(java.io.File directory,
FS fs)
Obtain a pointer to an exact location on disk.
|
private static java.io.File |
BaseRepositoryBuilder.getSymRef(java.io.File workTree,
java.io.File dotGit,
FS fs) |
static boolean |
RepositoryCache.FileKey.isGitRepository(java.io.File dir,
FS fs)
Guess if a directory contains a Git repository.
|
static RepositoryCache.FileKey |
RepositoryCache.FileKey.lenient(java.io.File directory,
FS fs)
Obtain a pointer to a location on disk.
|
static java.io.File |
RepositoryCache.FileKey.resolve(java.io.File directory,
FS fs)
Guess the proper path for a Git repository.
|
B |
BaseRepositoryBuilder.setFS(FS fs)
Set the file system abstraction needed by this repository.
|
Constructor and Description |
---|
FileKey(java.io.File directory,
FS fs) |
Modifier and Type | Field and Description |
---|---|
private FS |
FileBasedConfig.fs |
Constructor and Description |
---|
FileBasedConfig(Config base,
java.io.File cfgLocation,
FS fs)
The constructor
|
FileBasedConfig(java.io.File cfgLocation,
FS fs)
Create a configuration with no default fallback.
|
Modifier and Type | Method and Description |
---|---|
static Repository |
SubmoduleWalk.getSubmoduleRepository(java.io.File parent,
java.lang.String path,
FS fs)
Get submodule repository at path, using the specified file system
abstraction
|
Modifier and Type | Method and Description |
---|---|
protected com.jcraft.jsch.JSch |
JschConfigSessionFactory.createDefaultJSch(FS fs)
Create default instance of jsch
|
(package private) com.jcraft.jsch.Session |
JschConfigSessionFactory.createSession(CredentialsProvider credentialsProvider,
FS fs,
java.lang.String user,
java.lang.String pass,
java.lang.String host,
int port,
OpenSshConfig.Host hc) |
protected com.jcraft.jsch.Session |
JschConfigSessionFactory.createSession(OpenSshConfig.Host hc,
java.lang.String user,
java.lang.String host,
int port,
FS fs)
Create a new remote session for the requested address.
|
static OpenSshConfig |
OpenSshConfig.get(FS fs)
Obtain the user's configuration data.
|
protected com.jcraft.jsch.JSch |
JschConfigSessionFactory.getJSch(OpenSshConfig.Host hc,
FS fs)
Obtain the JSch used to create new sessions.
|
abstract RemoteSession |
SshSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
RemoteSession |
JschConfigSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
private static void |
JschConfigSessionFactory.identities(com.jcraft.jsch.JSch sch,
FS fs) |
private static void |
JschConfigSessionFactory.knownHosts(com.jcraft.jsch.JSch sch,
FS fs) |
Modifier and Type | Method and Description |
---|---|
SshdSession |
SshdSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms) |
Modifier and Type | Field and Description |
---|---|
protected FS |
FileTreeIterator.fs
the file system abstraction which will be necessary to perform certain
file system operations.
|
private FS |
FileTreeIterator.FileEntry.fs |
Constructor and Description |
---|
FileEntry(java.io.File f,
FS fs)
Create a new file entry.
|
FileEntry(java.io.File f,
FS fs,
FileTreeIterator.FileModeStrategy fileModeStrategy)
Create a new file entry given the specified FileModeStrategy
|
FileEntry(java.io.File f,
FS fs,
FS.Attributes attributes,
FileTreeIterator.FileModeStrategy fileModeStrategy)
Create a new file entry given the specified FileModeStrategy
|
FileTreeIterator(java.io.File root,
FS fs,
WorkingTreeOptions options)
Create a new iterator to traverse the given directory and its children.
|
FileTreeIterator(java.io.File root,
FS fs,
WorkingTreeOptions options,
FileTreeIterator.FileModeStrategy fileModeStrategy)
Create a new iterator to traverse the given directory and its children.
|
FileTreeIterator(FileTreeIterator p,
java.io.File root,
FS fs)
Create a new iterator to traverse a subdirectory.
|
FileTreeIterator(WorkingTreeIterator p,
java.io.File root,
FS fs,
FileTreeIterator.FileModeStrategy fileModeStrategy)
Create a new iterator to traverse a subdirectory, given the specified
FileModeStrategy.
|
Modifier and Type | Class and Description |
---|---|
class |
FS_POSIX
Base FS for POSIX based systems
|
class |
FS_Win32
FS implementation for Windows
|
class |
FS_Win32_Cygwin
FS implementation for Cygwin on Windows
|
Modifier and Type | Field and Description |
---|---|
static FS |
FS.DETECTED
The auto-detected implementation selected for this operating system and JRE.
|
(package private) FS |
FS.Attributes.fs |
Modifier and Type | Method and Description |
---|---|
static FS |
FS.detect()
Auto-detect the appropriate file system abstraction.
|
static FS |
FS.detect(java.lang.Boolean cygwinUsed)
Auto-detect the appropriate file system abstraction, taking into account
the presence of a Cygwin installation on the system.
|
FS |
FS.FSFactory.detect(java.lang.Boolean cygwinUsed)
Detect the file system
|
FS |
FS_Win32_Cygwin.newInstance()
Create a new instance of the same type of FS.
|
abstract FS |
FS.newInstance()
Create a new instance of the same type of FS.
|
FS |
FS_Win32.newInstance()
Create a new instance of the same type of FS.
|
FS |
FS_POSIX.newInstance()
Create a new instance of the same type of FS.
|
FS |
FS.setGitSystemConfig(java.io.File configFile)
Set the path to the system-wide Git configuration file to use.
|
FS |
FS.setUserHome(java.io.File path)
Set the user's home directory location.
|
Modifier and Type | Method and Description |
---|---|
(package private) static FS.Attributes |
FileUtils.getFileAttributesBasic(FS fs,
java.io.File file) |
static FS.Attributes |
FileUtils.getFileAttributesPosix(FS fs,
java.io.File file)
Get file system attributes for the given file.
|
abstract FileBasedConfig |
SystemReader.openSystemConfig(Config parent,
FS fs)
Open the gitconfig configuration found in the system-wide "etc" directory
|
FileBasedConfig |
SystemReader.Default.openSystemConfig(Config parent,
FS fs) |
abstract FileBasedConfig |
SystemReader.openUserConfig(Config parent,
FS fs)
Open the git configuration found in the user home
|
FileBasedConfig |
SystemReader.Default.openUserConfig(Config parent,
FS fs) |
static java.lang.String |
SshSupport.runSshCommand(URIish sshUri,
CredentialsProvider provider,
FS fs,
java.lang.String command,
int timeout)
Utility to execute a remote SSH command and read the first line of
output.
|
Constructor and Description |
---|
Attributes(java.io.File path,
FS fs)
Constructor when there are issues with reading.
|
Attributes(FS fs,
java.io.File file,
boolean exists,
boolean isDirectory,
boolean isExecutable,
boolean isSymbolicLink,
boolean isRegularFile,
long creationTime,
long lastModifiedTime,
long length) |
FS_POSIX(FS src)
Constructor
|
FS_Win32_Cygwin(FS src)
Constructor
|
FS_Win32(FS src)
Constructor
|
FS(FS src)
Initialize this FS using another's current settings.
|