GitService class
- Mixed-in types
Constructors
- GitService({required Logger logger, required FileSystem fs})
-
const
Properties
- fs → FileSystem
-
final
-
gitDiffArgs
→ List<
String> -
no setteroverride
- gitDir → String
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- mergeHead ↔ String?
-
getter/setter pairinherited
- mergeMode ↔ String?
-
getter/setter pairinherited
- mergeMsg ↔ String?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
List< String> filePaths) → Future<void> -
applyModifications(
List< String> existing) → Future<void> -
applyPatch(
) → Future< bool> -
inherited
-
checkoutFiles(
List< String> filePaths) → Future<void> -
createStash(
) → Future< String> -
inherited
-
deletePatch(
) → Future< void> -
inherited
-
diffFiles(
{List< String> diffArgs = const [], String? diffFilters}) → Future<List< String> ?> -
dropBackupStash(
) → Future< void> -
inherited
-
ensureDeletedFiles(
List< String> deletedFiles) → Future<void> -
getDeletedFiles(
) → Future< List< String> > -
hasAtLeastOneCommit(
) → Future< bool> -
inherited
-
isGitInstalled(
) → Future< bool> -
inherited
-
isGitRepository(
) → Future< bool> -
inherited
-
nonStagedFiles(
) → Future< List< String> ?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
partiallyStagedFiles(
) → Future< List< String> > -
patch(
List< String> filePaths) → Future<void> -
inherited
-
prepareFiles(
{bool backup = true}) → Future< GitContext> -
Prepare files for the task.
If
backup
is true, stash the current state of the repository. Returns a GitContext object with the current state of the repository. -
processRenames(
List< String> filePaths, {bool includeRenameFrom = true}) → List<String> -
From list of files, split renames and flatten into
two files
to
NULfrom
. -
restoreMergeStatuses(
{required String? msg, required String? mode, required String? head}) → void -
inherited
-
restoreStash(
) → Future< bool> -
setHooksDir(
) → Future< bool> -
stagedFiles(
) → Future< List< String> ?> -
stash(
) → Future< int?> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited