Skip to content

Rebase tool shouldn't perform any automated merge steps, because bad TS code might be accidentally merged #250

Open
@justingrant

Description

@justingrant

Now that upstream's ecmascript.mjs merges properly into ecmascript.ts, there's a new problem: the rebase tool can now perform fully automated rebase steps when there are no merge conflicts for a commit. (Before it was almost certain to have at least one merge conflict in every commit.)

IMO this auto-continue behavior is bad, because even when there's no merge conflicts, there's still a chance that TS-specific edits are needed. Being popped right into the commit message editor makes it too easy to accidentally close the editor and continue the rebase before making needed edits.

It's true that using an --exec might be able to catch this, but that adds a lot of extra time for each commit, given that I'm already manually running tests before continuing.

IMO a better solution would be to (if possible) require the tool to stop on every commit, whether there are merge conflicts or not.

Also, if you use a separate terminal window (or VS Code's IDE) to unstage the staged files, make edits, and re-stage them, and then you close the editor, then the rebase will be hosed with errors. IMO that's another reason to avoid auto-continuing.

If we do this, then one thing to check would be to make sure that the authorship of each commit stays the same. In the past, when I've interrupted commits during a rebase, it lost the original commit author.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions