org.eclipse.jgit.lib.ObjectDatabase .
This is the classical object database representation for a Git repository,
where objects are stored loose by hashing them into directories by their
org., or are stored in compressed containers
known as org.s.
Optionally an object database can reference one or more alternates; other ObjectDatabase instances that are searched in addition to the current database.
Databases are divided into two halves: a half that is considered to be fast
to search (the PackFiles), and a half that is considered to be slow
to search (loose objects). When alternates are present the fast half is fully
searched (recursively through all alternates) before the slow half is
considered.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final File | |
| private final Config | |
| private final FileCommitGraph | |
| private final FS | |
| private final ObjectDirectory. | |
| private final File | |
| private final LooseObjects | |
| private final File | |
| private final PackDirectory | |
| private final PackDirectory | |
| private static final int | RESOLVE_ABBREV_LIMIT
Maximum number of candidates offered as resolutions of abbreviation. |
| private Set | |
| private final File | |
| private FileSnapshot |
| Access | Constructor and Description |
|---|---|
| public | ObjectDirectory(final Config
configuration this directory consults for write settings. cfg, final File the location of the dir, File[] objects directory.a list of alternate object directories alternatePaths, FS the file system abstraction which will be necessary to perform
certain file system operations. fs, File file which contains IDs of shallow commits, null if shallow
commits handling should be turned off shallowFile)Initialize a reference to an on-disk object directory. |