GitWorkingPatches class abstract interface Getting started
Differences between the index and the work tree of one repository, plus applying a patch to the work tree.
It builds on GitIndexedPatches, so tree-to-tree and tree-to-index comparisons, as well as GitIndexedPatches.applyToIndex, remain available, and adds the comparisons that read working-tree files. No parameter selects the work tree: being a working repository is what exposes these methods.
- Implemented types
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
-
apply(
List< int> patch, {bool check = false, bool reverse = false, bool threeWay = false}) → Future<GitApplyResult> -
Applies
patchto the work tree, leaving the index untouched. -
applyToIndex(
List< int> patch, {bool check = false, bool reverse = false, bool threeWay = false}) → Future<GitApplyResult> -
Applies
patchto the index only, leaving the work tree untouched.inherited -
binaryDiff(
GitOid from, GitOid to) → Future< Uint8List> -
A binary patch that reproduces the change between the trees
fromandto, never decoded.inherited -
binaryDiffAgainstIndex(
GitOid tree) → Future< Uint8List> -
A binary patch that reproduces the change between
treeand the index, never decoded.inherited -
binaryDiffAgainstWorkTree(
) → Future< Uint8List> - A binary patch that reproduces the change between the index and the work tree, never decoded.
-
binaryDiffFromTree(
GitOid tree) → Future< Uint8List> -
A binary patch that reproduces the change between the tree
treeand the work tree, never decoded. -
changedPaths(
GitOid from, GitOid to, {Set< GitChangeKind> ? kinds}) → Future<List< String> > -
Paths that differ between the trees
fromandto.inherited -
changedPathsAgainstIndex(
GitOid tree, {Set< GitChangeKind> ? kinds}) → Future<List< String> > -
Paths that differ between
treeand the index.inherited -
changedPathsAgainstWorkTree(
{Set< GitChangeKind> ? kinds}) → Future<List< String> > - Paths that differ between the index and the work tree.
-
changedPathsFromTree(
GitOid tree, {Set< GitChangeKind> ? kinds}) → Future<List< String> > -
Paths that differ between the tree
treeand the work tree. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
textDiff(
GitOid from, GitOid to, {List< String> paths = const <String>[]}) → Future<String> -
A unified text diff between the trees
fromandto, decoded as UTF-8, for display.inherited -
textDiffAgainstIndex(
GitOid tree, {List< String> paths = const <String>[]}) → Future<String> -
A unified text diff between
treeand the index, decoded as UTF-8, for display.inherited -
textDiffAgainstWorkTree(
{List< String> paths = const <String>[]}) → Future<String> - A unified text diff between the index and the work tree, decoded as UTF-8, for display.
-
textDiffFromTree(
GitOid tree, {List< String> paths = const <String>[]}) → Future<String> -
A unified text diff between the tree
treeand the work tree, decoded as UTF-8, for display. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited