Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Get-Changed-Components.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ if (-not $ToSha) {
$ToSha = $(git rev-parse HEAD)
}

# Ensure that orphaned commits are available for diffing (e.g. when force-pushed).
git fetch origin $FromSha
git fetch origin main

$changedComponentFiles = Invoke-Expression "git diff --name-only $($FromSha)...$($ToSha) -- components/" -ErrorAction Stop
Expand Down
Loading