Skip to content

Commit

Permalink
add log for empty diff while updating existing patch during rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ds300 committed Jul 19, 2023
1 parent c26a1ae commit 984a6c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/makePatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 984a6c3

Please sign in to comment.