From 984a6c39d3d62039538e41428442253436fd3265 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Wed, 19 Jul 2023 16:05:30 +0100 Subject: [PATCH] add log for empty diff while updating existing patch during rebase --- src/makePatch.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/makePatch.ts b/src/makePatch.ts index 4eb88124..40349f7e 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -93,7 +93,6 @@ export function makePatch({ } // TODO: verify applied patch hashes - // TODO: handle empty diffs while rebasing // TODO: handle case where rebase appending and the name is the same as the next one in the sequence if ( mode.type === "overwrite_last" && @@ -323,6 +322,11 @@ export function makePatch({ `⁉️ Not creating patch file for package '${packagePathSpecifier}'`, ) console.log(`⁉️ There don't appear to be any changes.`) + if (isRebasing && mode.type === "overwrite_last") { + console.log( + "\n💡 To remove a patch file, delete it and then reinstall node_modules from scratch.", + ) + } process.exit(1) return }