Skip to content

Commit 984a6c3

Browse files
committed
add log for empty diff while updating existing patch during rebase
1 parent c26a1ae commit 984a6c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/makePatch.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export function makePatch({
9393
}
9494

9595
// TODO: verify applied patch hashes
96-
// TODO: handle empty diffs while rebasing
9796
// TODO: handle case where rebase appending and the name is the same as the next one in the sequence
9897
if (
9998
mode.type === "overwrite_last" &&
@@ -323,6 +322,11 @@ export function makePatch({
323322
`⁉️ Not creating patch file for package '${packagePathSpecifier}'`,
324323
)
325324
console.log(`⁉️ There don't appear to be any changes.`)
325+
if (isRebasing && mode.type === "overwrite_last") {
326+
console.log(
327+
"\n💡 To remove a patch file, delete it and then reinstall node_modules from scratch.",
328+
)
329+
}
326330
process.exit(1)
327331
return
328332
}

0 commit comments

Comments
 (0)