dropLatestStash method

Future<bool> dropLatestStash()

Implementation

Future<bool> dropLatestStash() async {
  final drop = await Process.run('git', ['stash', 'drop']);

  if (drop.exitCode != 0) {
    logger
      ..err('Failed to drop stash')
      ..detail('Error: ${drop.stderr}');
    return false;
  }

  return true;
}