pub struct RepoTab {Show 29 fields
pub repo_path: Option<PathBuf>,
pub repo_info: Option<RepoInfo>,
pub branches: Vec<BranchInfo>,
pub branch_list_state: ListState,
pub commits: Vec<CommitInfo>,
pub graph_rows: Vec<GraphRow>,
pub commit_list_state: ListState,
pub unstaged_changes: Vec<DiffInfo>,
pub staged_changes: Vec<DiffInfo>,
pub unstaged_list_state: ListState,
pub staged_list_state: ListState,
pub staging_focus: StagingFocus,
pub selected_diff: Option<DiffInfo>,
pub diff_scroll: u16,
pub commit_diffs: Vec<DiffInfo>,
pub commit_diff_file_index: usize,
pub commit_files: Vec<DiffFileEntry>,
pub selected_commit_oid: Option<String>,
pub stashes: Vec<StashEntry>,
pub stash_list_state: ListState,
pub remotes: Vec<RemoteInfo>,
pub search_query: String,
pub search_active: bool,
pub search_results: Vec<CommitInfo>,
pub stash_message_buffer: String,
pub status_message: Option<String>,
pub error_message: Option<String>,
pub is_loading: bool,
pub confirm_discard: bool,
}Expand description
All state that belongs to a single repository tab.
Fields§
§repo_path: Option<PathBuf>§repo_info: Option<RepoInfo>§branches: Vec<BranchInfo>§branch_list_state: ListState§commits: Vec<CommitInfo>§graph_rows: Vec<GraphRow>§commit_list_state: ListState§unstaged_changes: Vec<DiffInfo>§staged_changes: Vec<DiffInfo>§unstaged_list_state: ListState§staged_list_state: ListState§staging_focus: StagingFocus§selected_diff: Option<DiffInfo>§diff_scroll: u16§commit_diffs: Vec<DiffInfo>All file diffs for the currently viewed commit (for per-file navigation).
commit_diff_file_index: usizeIndex of the currently selected file in commit_diffs.
commit_files: Vec<DiffFileEntry>Lightweight file list for the selected commit.
selected_commit_oid: Option<String>OID of the currently selected commit (for lazy file diff loading).
stashes: Vec<StashEntry>§stash_list_state: ListState§remotes: Vec<RemoteInfo>§search_query: StringSearch query for commit filtering.
search_active: boolWhether search mode is active.
search_results: Vec<CommitInfo>Search results (commits matching the query).
stash_message_buffer: StringOptional stash message (set via input mode before saving).
status_message: Option<String>§error_message: Option<String>§is_loading: boolTrue while a background task is in flight for this tab.
confirm_discard: boolWhen true, the next d press actually discards; otherwise the first d sets this flag and shows a confirmation prompt.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoTab
impl RefUnwindSafe for RepoTab
impl Send for RepoTab
impl Sync for RepoTab
impl Unpin for RepoTab
impl UnsafeUnpin for RepoTab
impl UnwindSafe for RepoTab
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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