Skip to main content

Crate gitkraft_core

Crate gitkraft_core 

Source
Expand description

GitKraft Core

Shared, framework-free logic reused by both the Iced GUI and Ratatui TUI.

ModuleWhat lives here
featuresGit operations and types grouped by feature — repo, branches, commits, diff, staging, remotes, stash, log
utilsHelpers — relative time formatting, OID formatting, text truncation

This crate has NO GUI or TUI dependencies.

Re-exports§

pub use features::branches::BranchInfo;
pub use features::branches::BranchType;
pub use features::commits::CommitInfo;
pub use features::diff::DiffFileEntry;
pub use features::diff::DiffHunk;
pub use features::diff::DiffInfo;
pub use features::diff::DiffLine;
pub use features::diff::FileStatus;
pub use features::diff::StatusColorCategory;
pub use features::graph::GraphEdge;
pub use features::graph::GraphRow;
pub use features::persistence::AppSettings;
pub use features::persistence::LayoutSettings;
pub use features::persistence::RepoHistoryEntry;
pub use features::remotes::RemoteInfo;
pub use features::repo::RepoInfo;
pub use features::repo::RepoState;
pub use features::stash::StashEntry;
pub use features::theme::theme_by_index;
pub use features::theme::theme_index_by_name;
pub use features::theme::AppTheme;
pub use features::theme::Rgb;
pub use features::theme::THEME_COUNT;
pub use features::theme::THEME_NAMES;
pub use utils::short_oid_str;
pub use utils::text::truncate_str;

Modules§

features
Git operations grouped by feature area.
utils
Utility helpers shared across the crate — OID formatting, relative time, text, etc.