Check diff to parent commit for non-merge commits

This commit is contained in:
Marty Oehme 2025-03-05 22:00:41 +01:00
parent bb6ed04bf5
commit 642c363d8d
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -35,6 +35,11 @@ esac
base="$(git merge-base origin/HEAD "$tip")" base="$(git merge-base origin/HEAD "$tip")"
# simply get parent for direct master-commits
if [ "$base" = "$tip" ]; then
base="$(git rev-list -1 "$tip"~1)"
fi
echo "$base $tip" >/tmp/revisions echo "$base $tip" >/tmp/revisions
/bin/echo -e '\x1b[32mChanged packages:\x1b[0m' /bin/echo -e '\x1b[32mChanged packages:\x1b[0m'