chore: Strip noisy metadata from patches
Issue: Strip metadata from patches in `dev-save-patches` (#45 - closed)
Description
Closes Strip metadata from patches in `dev-save-patches` (#45 - closed) by:
- Stripping out the top-line metadata which is mostly arbitrary except the commit message.
- Setting
--no-signatureso that the environment specificgitversion isn't written to the patch.
This MR also:
- Adds a small check to warn the user if they ran
dev-save-patches.shon an empty changeset. - Changes how we handle the
$patches_dir_backup. Instead of creating a backup and working off of the$patches_dir, we create a.tmpdirectory and work off that. We finally move it all over to$patches_dirif things are good.
How to test?
Locally:
- Checkout this MR changes
- Run
cd vscodeto enter thevscodesubmodule. - Run
git reset --hard $(../scripts/dev-vscode-target-sha.sh)to reset your submodule to the base version. - Run
../scripts/dev-apply-patches.sh - Run
../scripts/dev-save-patches.sh - There should be no changes to the patch files
🎉
Edited by Paul Slaughter