Skip to content

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

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

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
1 participant