summaryrefslogtreecommitdiff
path: root/koszko-rebase.sh
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-04-28 17:48:04 +0200
committerWojtek Kosior <koszko@koszko.org>2024-04-28 17:48:04 +0200
commit7d732b9303f440f64de5176be4a3d08f665784bc (patch)
tree103b0dab6f4b771dff8fef6110378a9ea4d68003 /koszko-rebase.sh
parent66254142c6fd1c524de380740fbd046f34a21c17 (diff)
downloadguix-7d732b9303f440f64de5176be4a3d08f665784bc.tar.gz
guix-7d732b9303f440f64de5176be4a3d08f665784bc.zip
Employ a separate set of personal branches.
Diffstat (limited to 'koszko-rebase.sh')
-rwxr-xr-xkoszko-rebase.sh25
1 files changed, 19 insertions, 6 deletions
diff --git a/koszko-rebase.sh b/koszko-rebase.sh
index 6f6855f6e2..41cb73dbde 100755
--- a/koszko-rebase.sh
+++ b/koszko-rebase.sh
@@ -9,29 +9,42 @@ KOSZKO_BRANCHES="readme pantalaimon cgit exim ca certbot overlayfs extra-groups
guile-libraries localhost-repo-server vpath-builds sqlite-register-renamed ldap
gmnisrv"
+KOSZKO_PERSONAL_BRANCHES="websites"
+
cd "$(dirname "$0")"
git checkout koszko
git reset --hard master
-for BRANCH_SUFFIX in $KOSZKO_BRANCHES; do
- git checkout koszko-"$BRANCH_SUFFIX"
+rebase_branches() {
+ BUILDUP_BRANCH="$(git status | awk '/^On branch /{print $3}')"
+ [ "x$BUILDUP_BRANCH" != x ]
+
+ git checkout koszko-"$1"
git rebase master
git checkout koszko-work
- git reset --hard koszko-"$BRANCH_SUFFIX"
- git rebase koszko
- git checkout koszko
+ git reset --hard koszko-"$1"
+ git rebase "$BUILDUP_BRANCH"
+ git checkout "$BUILDUP_BRANCH"
git reset --hard koszko-work
+}
+
+for BRANCH_SUFFIX in $KOSZKO_BRANCHES; do
+ rebase_branches "$BRANCH_SUFFIX"
done
git rm .guix-authorizations
git commit -m "Allow unauthorized \`guix pull\`"
-git checkout koszko-localhost-urls
+git checkout koszko-personal
git reset --hard koszko
+for BRANCH_SUFFIX in $KOSZKO_PERSONAL_BRANCHES; do
+ rebase_branches "$BRANCH_SUFFIX"
+done
+
MODIFIED="$(grep 'url "https://git.koszko.org' gnu/packages/*.scm |
awk -F: '{print $1}' | sort | uniq)"