pub enum CommitOp {
Show 27 variants
SwitchTab,
SwitchPane,
ToggleFileStage,
MessageChanged(String),
MessageInsertChar(char),
MessageInsertNewline,
MessageBackspace,
MessageCursorLeft,
MessageCursorRight,
MessageCursorUp,
MessageCursorDown,
BranchInputOpen,
BranchInputCancel,
BranchChanged(String),
BranchCreate,
BranchSelectorOpen,
BranchSelectorCancel,
BranchCheckout(String),
Confirm,
DiffFocusToggle,
ToggleLineStage,
RevertLine,
LoadDiff {
path: PathBuf,
staged: bool,
},
StatusLoaded {
staged: Vec<StatusEntry>,
unstaged: Vec<StatusEntry>,
branches: Vec<String>,
current_branch: String,
},
DiffLoaded {
path: PathBuf,
staged: bool,
lines: Vec<DiffLine>,
},
GitOpSuccess(String),
GitOpError(String),
}Variants§
SwitchTab
Switch between Commit and Diff tabs.
SwitchPane
Cycle focus: Staged → Unstaged → Message.
ToggleFileStage
Stage or unstage the selected file.
MessageChanged(String)
Set the commit message text programmatically (e.g., clear or load a draft).
MessageInsertChar(char)
Keystroke editing ops for the message field.
MessageInsertNewline
MessageBackspace
MessageCursorLeft
MessageCursorRight
MessageCursorUp
MessageCursorDown
BranchInputOpen
Open the new-branch input (clears any previous value).
BranchInputCancel
Cancel the branch-name input without creating a branch.
BranchChanged(String)
Set the branch-name input text.
BranchCreate
Confirm new branch from branch_input.
BranchSelectorOpen
Open the branch selector popup (shows existing branches).
BranchSelectorCancel
Close the branch selector popup without action.
BranchCheckout(String)
Checkout the given branch (handled by app.rs with git ops).
Confirm
Execute commit (guarded: message must be non-empty).
DiffFocusToggle
Toggle focus between file list and diff lines panels in the diff tab.
ToggleLineStage
Toggle staged_diff_lines for the selected diff line (local, no git call). On a hunk header row this toggles fold instead.
RevertLine
Revert the selected diff line.
LoadDiff
Request diff for a file.
StatusLoaded
Async result ops (spawn_blocking → op_tx → handle_operation)
DiffLoaded
Fields
GitOpSuccess(String)
GitOpError(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommitOp
impl RefUnwindSafe for CommitOp
impl Send for CommitOp
impl Sync for CommitOp
impl Unpin for CommitOp
impl UnsafeUnpin for CommitOp
impl UnwindSafe for CommitOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more