]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
scripts/clang: remove mention to rewrite-branch
authorJuliana Fajardini <jufajardini@oisf.net>
Tue, 9 Aug 2022 18:20:25 +0000 (15:20 -0300)
committerVictor Julien <vjulien@oisf.net>
Fri, 5 May 2023 09:03:13 +0000 (11:03 +0200)
Although we prefer that formatting changes (e.g. the ones made by
running clang) go in a different commit, our script error message was
still suggesting `rewrite-branch` as an option. Removed that and added
that the changes made by the script should go into a separate commit.

scripts/clang-format.sh

index 86c3a8392c34fc9ae322c3bf23b86b2188561f88..89b14231011a907c0bb15eeeaea233ec423890df 100755 (executable)
@@ -431,7 +431,8 @@ function CheckBranch {
             Error "Branch requires formatting"
             Debug "View required changes with clang-format: ${italic}$format_changes${normal}"
             Error "View required changes with: ${italic}$EXEC $command --diff${normal}"
-            Error "Use ${italic}$EXEC rewrite-branch${normal} or ${italic}$EXEC branch${normal} to fix formatting"
+            Error "Use ${italic}./scripts/$EXEC branch${normal} to fix formatting,
+            then add formatting changes to a new commit"
             ExitWith $EXIT_CODE_FORMATTING_REQUIRED
         else
             return $EXIT_CODE_FORMATTING_REQUIRED