Staging class

Pre-Commit area in a Branch with files ready to be commited in memory

Available extensions

Constructors

Staging.new(Branch branch)

Properties

branch Branch
final
hashCode int
The hash code for this object.
no setterinherited
hasStagedFiles bool

Available on Staging, provided by the StagingStorage extension

Checks if files have been staged for a Commit
no setter
ignore Ignore

Available on Staging, provided by the StagingCommons extension

Get Ignore associated with repository
no setter
repository Repository

Available on Staging, provided by the StagingCommons extension

Get Repository associated with stagingFile
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stagingData StagingData?

Available on Staging, provided by the StagingStorage extension

Data containing files to be staged
no setter
stagingFile File

Available on Staging, provided by the StagingStorage extension

Actual File that has stagingData
no setter
stagingFilePath String

Available on Staging, provided by the StagingStorage extension

Path of stagingFile
no setter

Methods

commitStagedFiles({required String message, dynamic onNoStagingData()? = onNoStagingData}) → void

Available on Staging, provided by the StagingActions extension

Commit staged files in stagingFile with a commit message If a Merge is pending, it will be included in the Commit
deleteStagingData() → void

Available on Staging, provided by the StagingStorage extension

Removes stagingFile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveStagingData(StagingData data) StagingData

Available on Staging, provided by the StagingStorage extension

Saved data to stagingFile
stageFiles({required String pattern}) → void

Available on Staging, provided by the StagingActions extension

Stages files to be Commited into a Branch that match the pattern
toString() String
A string representation of this object.
inherited
unstageFiles({void onStagingFileDoesntExist()?}) → void

Available on Staging, provided by the StagingActions extension

Deletes data from stagingFile

Operators

operator ==(Object other) bool
The equality operator.
inherited