File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ run_clang_format: &run_clang_format
182
182
find -name '*.cpp' -o -name '*.h' | xargs clang-format-7 -i -style=file
183
183
git_status=$(git status --porcelain)
184
184
if [[ $git_status ]]; then
185
- echo "clang-format-7 is not happy, please run \"clang-format-7 -i -style /PATH/TO/foo.cpp\" to the following files"
185
+ git diff
186
+ echo "clang-format-7 recommends the changes above, please manually apply them OR automatically apply the changes "
187
+ echo "by running \"clang-format-7 -i -style /PATH/TO/foo.cpp\" to the following files"
186
188
echo "${git_status}"
187
189
exit 1
188
190
else
@@ -207,7 +209,9 @@ run_yapf: &run_yapf
207
209
yapf -i -r *.py test/ scripts/ torch_xla/
208
210
git_status=$(git status --porcelain)
209
211
if [[ $git_status ]]; then
210
- echo "yapf is not happy, please run `yapf -i /PATH/TO/foo.py` to the following files"
212
+ git diff
213
+ echo "yapf recommends the changes above, please manually apply them OR automatically apply the changes "
214
+ echo "by running `yapf -i /PATH/TO/foo.py` to the following files"
211
215
echo "${git_status}"
212
216
exit 1
213
217
else
You can’t perform that action at this time.
0 commit comments