getDeletedFiles method
Implementation
Future<List<String>> getDeletedFiles() async {
final result = await Process.run('git', [
'diff',
'HEAD',
'--name-only',
'--diff-filter=D',
...gitDiffArgs,
]);
final out = switch (result.stdout) {
final String files => files.trim(),
_ => '',
};
final files =
out.split('\n').where((element) => element.isNotEmpty).toList();
return files;
}