Skip to content

Allow Reverting Multiple Transactions at Once#115

Merged
marstr merged 2 commits intomainfrom
multipleReverts
Jul 26, 2025
Merged

Allow Reverting Multiple Transactions at Once#115
marstr merged 2 commits intomainfrom
multipleReverts

Conversation

@marstr
Copy link
Owner

@marstr marstr commented Jul 26, 2025

Adopts a new version of envelopes, makes tweaks to the way the revert command was previously implemented.

@marstr marstr requested a review from Copilot July 26, 2025 04:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@marstr marstr merged commit eaefb20 into main Jul 26, 2025
3 checks passed
@marstr marstr deleted the multipleReverts branch July 26, 2025 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants