hasUncommittedChanges property

bool hasUncommittedChanges
final

Implementation

static final hasUncommittedChanges =
    Process.runSync('git', ['status', '--porcelain'])
        .stdout
        .toString()
        .isNotEmpty;