Checkout class
A class that provides functionality for checking out files and directories in a Git repository.
This class contains static methods for performing various types of checkouts:
- Checking out HEAD
- Checking out the index
- Checking out a specific reference
- Checking out a specific commit
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
commit(
{required Repository repo, required Commit commit, Set< GitCheckout> strategy = const {GitCheckout.safe, GitCheckout.recreateMissing}, String? directory, List<String> ? paths}) → void -
Updates files in the working tree to match the content of the tree
pointed at by the
commit. -
head(
{required Repository repo, Set< GitCheckout> strategy = const {GitCheckout.safe, GitCheckout.recreateMissing}, String? directory, List<String> ? paths}) → void - Updates files in the index and the working tree to match the content of the commit pointed at by HEAD.
-
index(
{required Repository repo, Set< GitCheckout> strategy = const {GitCheckout.safe, GitCheckout.recreateMissing}, String? directory, List<String> ? paths}) → void - Updates files in the working tree to match the content of the index.
-
reference(
{required Repository repo, required String name, Set< GitCheckout> strategy = const {GitCheckout.safe, GitCheckout.recreateMissing}, String? directory, List<String> ? paths}) → void -
Updates files in the working tree to match the content of the tree
pointed at by the reference
nametarget.