The current user (rte_flow) of has_code_change pass what looks like
a regular expression, while -S matches exact strings.

Use -G.

Fixes: 947dff12bcf5 ("devtools: check flow API doc tables")
Cc: [email protected]

Signed-off-by: David Marchand <[email protected]>
---
 devtools/check-doc-vs-code.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devtools/check-doc-vs-code.sh b/devtools/check-doc-vs-code.sh
index c58c239c87..80d77907f0 100755
--- a/devtools/check-doc-vs-code.sh
+++ b/devtools/check-doc-vs-code.sh
@@ -28,7 +28,7 @@ changed_files()
 
 has_code_change() # <pattern>
 {
-       test -n "$(git log --format='%h' -S"$1" $trusted_commit..)"
+       test -n "$(git log --format='%h' -G"$1" $trusted_commit..)"
 }
 
 has_file_change() # <pattern>
-- 
2.54.0

Reply via email to