Skip to content

Support range select for reverting commits #3272

@jesseduffield

Description

@jesseduffield

Is your feature request related to a problem? Please describe.
Sometimes it's useful to revert a range of commits.

Describe the solution you'd like
In git you can revert commits A-B via git revert ^A..B. Now that we support range select, we should use it for handling reverts.

Additional context
Currently if you try to revert an individual merge commit, you're asked to select a parent commit for the revert. When we're dealing with a range, the range could include multiple merge commits it's not clear to me what we should do in that situation. As such, for now let's just not support reverting a range of commits which includes merge commits (via GetDisabledReason).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions