printGitDiffs static method

void printGitDiffs(
  1. String unapprovedFullPath,
  2. String differences, {
  3. bool showTip = true,
})

Implementation

static void printGitDiffs(
  String unapprovedFullPath,
  String differences, {
  bool showTip = true,
}) {
  ApprovalLogger.log("Results of git diff:\n${differences.trim()}");
  if (showTip) {
    ApprovalLogger.log(
      "To review, run: dart run approved:review '$unapprovedFullPath'",
    );
    ApprovalLogger.log("To review all, run: dart run approved:review");
  }
}