hasChangedSince method

Future<bool> hasChangedSince(
  1. String? since
)

Implementation

Future<bool> hasChangedSince(String? since) async {
  if (since == null) return true;

  final process = await Process.start(
    "git",
    ["diff", "--exit-code", "--name-only", since, "."],
    workingDirectory: directory.path,
  );

  return await process.exitCode != 0;
}