Not against the (possibly updated) freshly checked-out origin/main branch.
This is the problem:
|
git fetch origin "$target_branch:$target_branch" &>/dev/null |
The generated diff might be unnecessarily big if a different pull-request was merged in the meantime.