[llvm] [docs] Fix suggested darker command in coding standards (PR #69860)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 21 18:04:18 PDT 2023


https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/69860

Do not attempt to format deleted files.

>From c999229147314c7bee6a014fea416c2101d76eae Mon Sep 17 00:00:00 2001
From: Jakub Kuderski <jakub at nod-labs.com>
Date: Sat, 21 Oct 2023 21:02:11 -0400
Subject: [PATCH] [docs] Fix suggested darker command in coding standards

Do not attempt to format deleted files.
---
 llvm/docs/CodingStandards.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst
index ed7faa8b56f2de0..3268cf1a9442de7 100644
--- a/llvm/docs/CodingStandards.rst
+++ b/llvm/docs/CodingStandards.rst
@@ -148,7 +148,7 @@ For example:
 
 .. code-block:: bash
 
-   $ darker -r HEAD^ $(git diff --name-only HEAD^)
+   $ darker -r HEAD^ $(git diff --name-only --diff-filter=d HEAD^)
 
 Mechanical Source Issues
 ========================



More information about the llvm-commits mailing list