GitDiffService class
A service wrapping Git commands for repository evaluation and diffing.
Constructors
- GitDiffService({String? workingDirectory})
-
const
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
-
getCurrentFileContent(
String relativePath) → Future< String> -
Reads the current content of
relativePathfrom disk. -
getHistoricalFileContent(
String baseRef, String relativePath) → Future< String> -
Extracts the historical content of
relativePathatbaseReffrom Git. -
getMergeBase(
String baseRef) → Future< String> -
Resolves the common ancestor commit SHA between
baseRefand HEAD. -
getModifiedDartFiles(
String baseCommit, {List< String> targetPaths = const []}) → Future<List< String> > -
Finds Dart files modified between
baseCommitand HEAD. -
getRepoRoot(
) → Future< String> - Returns the absolute filesystem path of the target repository root.
-
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