Christian Hesse pushed to branch main at Arch Linux / Packaging / Packages / vis


Commits:
f73e4bfd by Christian Hesse at 2025-12-10T22:06:08+01:00
extended functionality on git cherry-pick & revert

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -42,14 +42,16 @@ prepare() {
   git submodule init
   git -c protocol.file.allow=always submodule update
   
-  local _c
+  local _c _l
   for _c in "${_backports[@]}"; do
-    git log --oneline -1 "${_c}"
-    git cherry-pick -n "${_c}"
+    if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
+    git log --oneline "${_l}" "${_c}"
+    git cherry-pick --mainline 1 --no-commit "${_c}"
   done
   for _c in "${_reverts[@]}"; do
-    git log --oneline -1 "${_c}"
-    git revert -n "${_c}"
+    if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
+    git log --oneline "${_l}" "${_c}"
+    git revert --mainline 1 --no-commit "${_c}"
   done
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/vis/-/commit/f73e4bfdcaf7907d65c012d8e46beba3b8e0950b

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/vis/-/commit/f73e4bfdcaf7907d65c012d8e46beba3b8e0950b
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to