GitRepositoryManager class abstract interface Getting started
Manager role over repositories stored on disk: it opens and creates them.
Opening returns a GitFileRepository: it works on paths, so it always produces a repository stored on disk. The precise type — working or bare — is fixed when the repository is opened, from git's own answer. openWorking and openBare return that precise type when the caller already knows which one to expect.
Cloning is not a manager operation: it belongs to the client role, exposed
by GitFileClient in lib/src/client/.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
String path, {String? initialBranch, bool allowOccupied = false}) → Future< GitWorkingRepository> -
Creates a new repository with a work tree at
pathand opens it. -
initBare(
String path, {String? initialBranch, bool allowOccupied = false}) → Future< GitFileBareRepository> -
Creates a new bare repository at
pathand opens it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String path) → Future< GitFileRepository> -
Opens the repository living at
path(its work tree, or its.gitdirectory for bare repositories). -
openBare(
String path) → Future< GitFileBareRepository> -
Opens
pathand returns it as a GitFileBareRepository. -
openWorking(
String path) → Future< GitWorkingRepository> -
Opens
pathand returns it as a GitWorkingRepository. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited