GitHandler instances per Git repository.
Ensures that each Git repository (identified by its root path) has a single GitHandler instance shared across the application.
Usage:
get(Path) — for known repository root paths (must contain a .git folder).
fromAnyPath(Path) — for arbitrary paths inside a Git repo; will locate the repo root first.
| Modifier and Type | Field and Description |
|---|---|
| private final GitPreferences | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public GitHandler |
| gitPreferences | back to summary |
|---|---|
| private final GitPreferences gitPreferences | |
| handlerCache | back to summary |
|---|---|
| private final Map<Path, GitHandler> handlerCache | |
| GitHandlerRegistry | back to summary |
|---|---|
| public GitHandlerRegistry(GitPreferences gitPreferences) | |
| fromAnyPath | back to summary |
|---|---|
| public Optional | |
| get | back to summary |
|---|---|
| public GitHandler get(@NonNull Path repoPath) | |