File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ MERGE_BASE=$(git merge-base $BRANCH HEAD)
1919FORMAT_MSG=$( git clang-format $MERGE_BASE -q --diff -- src/)
2020if [ -n " $FORMAT_MSG " -a " $FORMAT_MSG " != " no modified files to format" ]
2121then
22- echo " Run git clang-format before committing! "
22+ echo " Please run git clang-format before committing, or apply this diff: "
2323 echo
2424 # Run git clang-format again, this time without capruting stdout. This way
2525 # clang-format format the message nicely and add color.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ CLANG_TIDY_DIFF=$CLANG_DIR/share/clang/clang-tidy-diff.py
2020TIDY_MSG=$( git diff -U0 $BRANCH ... | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null)
2121if [ -n " $TIDY_MSG " -a " $TIDY_MSG " != " No relevant changes found." ]
2222then
23- echo " Fix clang-tidy errors before committing! "
23+ echo " Please run clang-tidy before committing, or apply this diff: "
2424 echo
2525 # Run clang-tidy once again to show the error
2626 git diff -U0 $BRANCH ... | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null
You can’t perform that action at this time.
0 commit comments