localChanges method
Implementation
Future<LocalChanges?> localChanges(String revision) async {
// TODO move this check outside of GitClient
if (revision != 'HEAD') {
// local changes are only interesting for HEAD during active development
return LocalChanges.none;
}
final changes = await _git('diff --shortstat HEAD', emptyResultIsError: false);
if (changes == null) return null;
return _parseDiffShortStat(changes);
}