2022-06-02 00:37:19 +00:00
|
|
|
#!/bin/bash
|
2022-06-22 14:55:38 +00:00
|
|
|
HOWMANY="-$1"
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
HOWMANY="-1"
|
|
|
|
fi
|
2022-06-02 00:37:19 +00:00
|
|
|
|
|
|
|
echo "Fetching from upstream"
|
2023-09-22 19:56:19 +00:00
|
|
|
git fetch https://gitlab.com/redhat/centos-stream/release-engineering/comps.git c10s
|
2022-06-02 00:37:19 +00:00
|
|
|
echo "Formatting patch and applying..."
|
2023-09-22 19:56:19 +00:00
|
|
|
git format-patch --stdout ${HOWMANY} FETCH_HEAD | sed -e 's/centos-stream-10/rocky-10-lh/' | git apply
|
2022-06-02 00:37:19 +00:00
|
|
|
echo "!! DIFF OF CHANGES !!"
|
|
|
|
git --no-pager diff HEAD
|
|
|
|
|
|
|
|
echo "You may now commit and push."
|