Skip to content

feat: implements revert feature#148

Merged
seokju-na merged 6 commits intotoss:mainfrom
other-yuka:revert
Sep 25, 2025
Merged

feat: implements revert feature#148
seokju-na merged 6 commits intotoss:mainfrom
other-yuka:revert

Conversation

@other-yuka
Copy link
Contributor

This PR implements revert features.

Specifications

1. repo.revert(commit, options?)

Reverts the given commit, producing changes in the index and working directory.

Parameters

  • commit: The commit to revert
  • options (optional): Configuration object
    • mainline: Specify mainline parent for merge commit reverts
    • mergeOptions.failOnConflict: Whether to fail on conflict (boolean)
    • checkoutOptions: Additional checkout configuration

2. repo.revertCommit(revertCommit, ourCommit, mainline, mergeOptions?)

Reverts the given commit against the given "our" commit, producing an index that reflects the result of the revert.

Parameters

  • revertCommit: The commit to be reverted
  • ourCommit: The current commit
  • mainline: Mainline parent number (0 for regular commits)
  • mergeOptions (optional): Merge configuration options

closes #130

@vercel
Copy link

vercel bot commented Sep 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
es-git Ready Ready Preview Comment Sep 7, 2025 4:14am

@seokju-na seokju-na merged commit 63be538 into toss:main Sep 25, 2025
27 checks passed
@other-yuka other-yuka deleted the revert branch September 25, 2025 07:36
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.

revert

2 participants