early-access version 2853
This commit is contained in:
20
externals/vcpkg/scripts/azure-pipelines/Create-PRDiff.ps1
vendored
Executable file
20
externals/vcpkg/scripts/azure-pipelines/Create-PRDiff.ps1
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
[CmdletBinding(PositionalBinding=$False)]
|
||||
Param(
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String]$DiffFile
|
||||
)
|
||||
|
||||
Start-Process -FilePath 'git' -ArgumentList 'diff' `
|
||||
-NoNewWindow -Wait `
|
||||
-RedirectStandardOutput $DiffFile
|
||||
if (0 -ne (Get-Item -LiteralPath $DiffFile).Length)
|
||||
{
|
||||
$msg = @(
|
||||
'The formatting of the files in the repo were not what we expected,',
|
||||
'or the documentation was not regenerated.',
|
||||
'Please access the diff from format.diff in the build artifacts,'
|
||||
'and apply the patch with `git apply`'
|
||||
)
|
||||
Write-Error ($msg -join "`n")
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user