From 61029ae812d611ce16f01b3b1bea38e21dba2ee2 Mon Sep 17 00:00:00 2001 From: ivan-boikov Date: Sun, 18 Aug 2024 17:24:54 +0200 Subject: Apply patches on patches branch --- patches/dwmpatch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patches/dwmpatch b/patches/dwmpatch index df27781..59060c4 100755 --- a/patches/dwmpatch +++ b/patches/dwmpatch @@ -26,12 +26,14 @@ branches=$(git for-each-ref --format='%(refname:short)' refs/heads/ | grep diff) for branch in $branches; do git branch -D $branch || exit done +# branc with merged patches +git branch -D patched -git checkout -b "patched" || git switch "patched" git status for patchfile in *.diff; do + git switch -q "patches" apply_patch "$patchfile" || (git switch "patches" && exit) - git switch -q "patched" done +git checkout -b "patched" echo "Merge patch branches manually now" -- cgit v1.2.3