We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f31a5e4 + 2fac84d commit b920000Copy full SHA for b920000
Get-Changed-Components.ps1
@@ -30,6 +30,8 @@ if (-not $ToSha) {
30
$ToSha = $(git rev-parse HEAD)
31
}
32
33
+# Ensure that orphaned commits are available for diffing (e.g. when force-pushed).
34
+git fetch origin $FromSha
35
git fetch origin main
36
37
$changedComponentFiles = Invoke-Expression "git diff --name-only $($FromSha)...$($ToSha) -- components/" -ErrorAction Stop
0 commit comments