Created
December 25, 2024 03:03
-
-
Save wochap/e41f6c8323f7449f40d3b849ca6726c1 to your computer and use it in GitHub Desktop.
generate DWL patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
main_branch="v0.8-dev" | |
patch_branch=$(git branch --show-current) | |
patch_name="${patch_branch##*/}" | |
git format-patch --no-signature --stdout "${main_branch}..${patch_branch}" > "${patch_name}.patch" -- ':!*.patch' | |
git diff --patch "${main_branch}..${patch_branch}" > "${patch_name}-diff.patch" -- ':!*.patch' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment