From 7b792c087d3e90a0ddd8caee875735a708908ca8 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Fri, 19 Nov 2021 12:22:04 -0800 Subject: [PATCH] Wrap format script diff in patch command (flutter/engine#29833) --- engine/src/flutter/ci/bin/format.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/flutter/ci/bin/format.dart b/engine/src/flutter/ci/bin/format.dart index 608ef4b28b..16f2e84246 100644 --- a/engine/src/flutter/ci/bin/format.dart +++ b/engine/src/flutter/ci/bin/format.dart @@ -408,9 +408,14 @@ class ClangFormatChecker extends FormatChecker { } else { error('Found ${failed.length} C++/ObjC file${plural ? 's' : ''}' ' which ${plural ? 'were' : 'was'} formatted incorrectly.'); + stdout.writeln('To fix, run:'); + stdout.writeln(); + stdout.writeln('patch -p0 <