5 tip
="$(git rev-list -1 --parents HEAD)"
7 # This is a merge commit, pick last parent
8 *" "*" "*) tip
="${tip##* }" ;;
9 # This is a non-merge commit, pick itself
10 *) tip
="${tip%% *}" ;;
13 base
="$(git merge-base origin/HEAD "$tip")"
15 [ $
(git rev-list
--count "$tip" "^$base") -lt 200 ] ||
{
16 echo "::error title=Branch out of date::Your branch is too out of date. Please rebase on upstream and force-push."
20 echo "$base $tip" >/tmp
/revisions
22 /bin
/echo -e '\x1b[32mChanged packages:\x1b[0m'
23 git diff-tree
-r --no-renames --name-only --diff-filter=AM \
25 -- 'srcpkgs/*/template' |
27 xargs .
/xbps-src sort-dependencies |