Merge branch 'worktree-agent-aa9ed772f90c7c7b3'
This commit is contained in:
@@ -2,6 +2,7 @@ import 'change_capture.dart';
|
||||
import 'file_change.dart';
|
||||
import 'run_changes.dart';
|
||||
import 'unified_patch.dart';
|
||||
import '../../../ui/text/plural.dart';
|
||||
|
||||
/// The honest messages the viewer and its tests share. Spelled once, matching
|
||||
/// the web client's `web/src/changes.js`.
|
||||
@@ -62,7 +63,9 @@ String runChangesNote(RunChanges changes) {
|
||||
if (changes.partial) {
|
||||
out = partialCaptureDetail;
|
||||
final caveats = <String>[];
|
||||
if (changes.skipped > 0) caveats.add('${changes.skipped} files skipped');
|
||||
if (changes.skipped > 0) {
|
||||
caveats.add('${countLabel(changes.skipped, 'file')} skipped');
|
||||
}
|
||||
if (changes.omitted > 0) caveats.add('${changes.omitted} omitted');
|
||||
final truncated = changes.files.where((file) => file.truncated).length;
|
||||
if (truncated > 0) caveats.add('$truncated truncated');
|
||||
|
||||
Reference in New Issue
Block a user