git_shortcuts/
error.rs

1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3    #[error("HEAD is not pointing to a branch.")]
4    HeadIsNotABranch,
5    #[error("{0} is not a known prefix.")]
6    UnknownPrefix(String),
7    #[error("{0} is not a valid branch name.")]
8    InvalidBranchName(String),
9    #[error("No staged changes were found.")]
10    NoStagedChanges,
11}