Skip to main content

git_stk/commands/
undo.rs

1use anyhow::Result;
2
3use crate::commands::Run;
4
5/// Undo the last stack-rewriting command (restack, sync, merge, cleanup,
6/// rename), restoring local branch tips and metadata.
7#[derive(Debug, clap::Args)]
8pub struct Undo {}
9
10impl Run for Undo {
11    fn run(self) -> Result<()> {
12        crate::stack::undo()
13    }
14}