Allow Reverting Multiple Transactions at Once#115
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request updates the application to support reverting multiple transactions at once by adopting a new version of the envelopes library and updating related transaction handling logic.
Key changes:
- Updates envelopes library dependency to support multiple transaction reverts
- Modifies transaction formatting to handle arrays of revert IDs instead of single IDs
- Updates file system operations to use modern Go stdlib functions and improved directory permissions
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Updates envelopes library to newer version with multi-revert support |
| internal/format/transaction.go | Updates transaction formatting to handle multiple revert IDs and adds helper function |
| cmd/commit.go | Changes revert assignment to use entire array instead of first element |
| cmd/revert.go | Simplifies revert logic and updates file permissions |
| internal/index/checkout.go | Removes deprecated ioutil import and improves directory permissions |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts a new version of envelopes, makes tweaks to the way the revert command was previously implemented.