patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Valentin Gagarin <valentin@gagarin.work>
Cc: devel@spectrum-os.org
Subject: Re: [PATCH] release/checks/whitespace: skip binary files
Date: Sat, 23 May 2026 10:29:01 +0200	[thread overview]
Message-ID: <878q9ar0ky.fsf@alyssa.is> (raw)
In-Reply-To: <20260520222237.257773-1-valentin@gagarin.work>

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

Valentin Gagarin <valentin@gagarin.work> writes:

> 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
>  ''
>  ) (_: {})

Thanks — definitely an improvement.  I'm going to tweak to use the
shorter -I to keep the line length manageable.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2026-05-23  8:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 22:22 [PATCH] release/checks/whitespace: skip binary files Valentin Gagarin
2026-05-23  8:29 ` Alyssa Ross [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878q9ar0ky.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=devel@spectrum-os.org \
    --cc=valentin@gagarin.work \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).