-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: move optimization for no-op rebases into
MutableRepo
(#111)
Certain commands should never rewrite commits, or they take care of rebasing descendants themselves. We have an optimization in `commands.rs` for those commands, so they skip the usual automatic rebasing before committing the transaction. That's risky to have to remember and `MutableRepo` already knows if any commits have been rewritten (that wasn't the case before, in the Evolution-based code). So let's just have `MutableRepo` do the check instead.
- Loading branch information
1 parent
d7b60c9
commit b0b92cb
Showing
2 changed files
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters