File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1212 runs-on : windows-latest
1313 steps :
1414 - uses : actions/checkout@v4
15+ with :
16+ # Force a non-shallow checkout, so that clang-format can access source history to compare against
17+ # See https://github.com/actions/checkout for more details.
18+ fetch-depth : 0
1519
1620 - name : Find vcvars64.bat
1721 run : |
3034 exit /b %ERRORLEVEL%
3135 )
3236
33- git clang-format refs/remotes/ origin/master --binary "%CLANG_FORMAT%" --style file -- cppwinrt/*.h cppwinrt/*.cpp fast_fwd/*.h fast_fwd/*.cpp prebuild/*.h prebuild/*.cpp scratch/*.h scratch/*.cpp strings/*.h strings/*.cpp test/*.h test/*.cpp vsix/*.h vsix/*.cpp
37+ git clang-format origin/master --binary "%CLANG_FORMAT%" --style file -- cppwinrt/*.h cppwinrt/*.cpp fast_fwd/*.h fast_fwd/*.cpp prebuild/*.h prebuild/*.cpp scratch/*.h scratch/*.cpp strings/*.h strings/*.cpp test/*.h test/*.cpp vsix/*.h vsix/*.cpp
3438
3539 if %ERRORLEVEL% neq 0 (
3640 echo ::error::This branch contains changes that have not been formatted with 'clang-format',
You can’t perform that action at this time.
0 commit comments