-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: move merge with operation to transaction (#111)
It's the transaction's job to create a new operation, and that's where the knowledge of parent operations is. By moving the logic for merging in another operation there, we can make it contiuously update its set of parent operations. That removes the risk of forgetting to add the merged-in operation as a parent. It also makes it easier to reuse the function from the CLI so we can inform the user about the process (which is what I was investigating when I noticed that this cleanup was possible).
- Loading branch information
1 parent
899b68e
commit a16e2e0
Showing
2 changed files
with
22 additions
and
20 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