From c5938a26ae7cbc46c412b87313c80303956055bd Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 7 Jan 2025 08:45:45 +0000 Subject: [PATCH] Add -r to xargs command Per update to blog post: https://adamj.eu/tech/2022/03/09/how-to-run-a-command-on-many-files-in-your-git-repository/ --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 70120ed9..64dba8dc 100644 --- a/README.rst +++ b/README.rst @@ -99,7 +99,7 @@ For example, |with git ls-files pipe xargs|_: .. code-block:: sh - git ls-files -z -- '*.py' | xargs -0 django-upgrade --target-version 5.0 + git ls-files -z -- '*.py' | xargs -0r django-upgrade --target-version 5.0 …or PowerShell’s |ForEach-Object|__: