getParsedDiff method

Future<List<GitFileDiff>> getParsedDiff(
  1. String baseRef, {
  2. List<String> targetPaths = const [],
})

Returns the parsed GitFileDiff list between baseRef and the working tree.

Implementation

Future<List<GitFileDiff>> getParsedDiff(
  String baseRef, {
  List<String> targetPaths = const [],
}) async {
  final rawDiff = await getUnifiedDiff(baseRef, targetPaths: targetPaths);
  return GitDiffParser.parse(rawDiff);
}