Skip to content

Instantly share code, notes, and snippets.

View zer0def's full-sized avatar

‍^‍\‍‍.‍‍z‍‍e‍‍r‍‍0‍‍d‍‍e‍‍(‍‍?‍‍:‍‍a‍‍|‍‍r‍‍?‍‍p‍‍)‍‍?‍‍(‍‍?‍‍:‍‍t‍‍h‍‍|‍‍f‍‍|‍‍v‍‍)‍‍$‍‍ zer0def

View GitHub Profile
@zer0def
zer0def / generate-squashed-patch.sh
Last active June 30, 2024 10:39 — forked from thestinger/gmscompat-commits.md
Sandboxed Google Play compatibility layer commits
#!/bin/sh -ex
_head="$(git rev-parse --abbrev-ref HEAD)"
git checkout "$(git log --format=oneline "${_head}" | awk '/ gmscompat: / {print $1}' | tac | head -n1)^"
for i in $(git log --format=oneline "${_head}" | awk '/ gmscompat: / {print $1}' | tac); do # | xargs -n1 -- git cherry-pick -n
git cherry-pick -n "${i}" || git mergetool
done
git commit -m 'squashed gmscompat patch'