patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] release/checks/whitespace: skip binary files
@ 2026-05-20 22:22 Valentin Gagarin
  2026-05-23  8:29 ` Alyssa Ross
  2026-05-23  8:30 ` [PATCH] release/checks/whitespace: skip binary files Alyssa Ross
  0 siblings, 2 replies; 6+ messages in thread
From: Valentin Gagarin @ 2026-05-20 22:22 UTC (permalink / raw)
  To: devel; +Cc: Valentin Gagarin

Trailing whitespace is meaningful only for text.

Signed-off-by: Valentin Gagarin <valentin@gagarin.work>
---
 release/checks/whitespace.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/checks/whitespace.nix b/release/checks/whitespace.nix
index 56710b6..3929c8f 100644
--- a/release/checks/whitespace.nix
+++ b/release/checks/whitespace.nix
@@ -9,6 +9,6 @@ runCommand "spectrum-whitespace" {
     fileset = srcWithNix;
   };
 } ''
-  grep --color=always --exclude='*.patch' -r "[[:space:]]$" $src || touch $out
+  grep --color=always --binary-files=without-match --exclude='*.patch' -r "[[:space:]]$" $src || touch $out
 ''
 ) (_: {})
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-25 13:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20 22:22 [PATCH] release/checks/whitespace: skip binary files Valentin Gagarin
2026-05-23  8:29 ` Alyssa Ross
2026-05-23 12:52   ` Valentin Gagarin
2026-05-23 12:57     ` Alyssa Ross
2026-05-25 13:22       ` Long vs. short options Alyssa Ross
2026-05-23  8:30 ` [PATCH] release/checks/whitespace: skip binary files Alyssa Ross

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).