git_stk/commands/undo.rs
1use anyhow::Result;
2
3use crate::commands::Run;
4
5/// Undo the last stack-rewriting command - any command that snapshots the
6/// stack before touching it - 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}