This is the commit-graph file representation for a Git object database. Each
call to FileCommitGraph#get() will recheck for newer versions.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv | FileCommitGraph(File
the location of the objectsDir)objects directory.Initialize a reference to an on-disk commit-graph. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CommitGraph | Returns: commit-graph or null if commit-graph file does not exist or corrupt.The method will first scan whether the ".git/objects/info/commit-graph" has been modified, if so, it will re-parse the file, otherwise it will return the same result as the last time. |
| baseGraph | back to summary |
|---|---|
| private final AtomicReference<FileCommitGraph. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| FileCommitGraph | back to summary |
|---|---|
| pack-priv FileCommitGraph(File objectsDir) Initialize a reference to an on-disk commit-graph.
| |
| get | back to summary |
|---|---|
| pack-priv CommitGraph get() The method will first scan whether the ".git/objects/info/commit-graph" has been modified, if so, it will re-parse the file, otherwise it will return the same result as the last time.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private final CommitGraph | |
| private final FileSnapshot |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CommitGraph | |
| private static CommitGraph | |
| pack-priv FileCommitGraph. |
| file | back to summary |
|---|---|
| private final File file | |
| graph | back to summary |
|---|---|
| private final CommitGraph graph | |
| snapshot | back to summary |
|---|---|
| private final FileSnapshot snapshot | |
| GraphSnapshot | back to summary |
|---|---|
| pack-priv GraphSnapshot(File file) | |
| GraphSnapshot | back to summary |
|---|---|
| pack-priv GraphSnapshot(File file, FileSnapshot snapshot, CommitGraph graph) | |
| getCommitGraph | back to summary |
|---|---|
| pack-priv CommitGraph getCommitGraph() | |
| open | back to summary |
|---|---|
| private static CommitGraph open(File file) | |
| refresh | back to summary |
|---|---|
| pack-priv FileCommitGraph. | |