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
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2026-05-20 22:23 UTC | newest]

Thread overview: (only message) (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

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).