Skip to main content

gitstack/
lib.rs

1pub mod app;
2pub mod compare;
3pub mod config;
4pub mod event;
5pub mod export;
6pub mod filter;
7pub mod git;
8pub mod graph;
9pub mod related_files;
10pub mod relevance;
11pub mod stats;
12pub mod suggestion;
13pub mod topology;
14pub mod tui;
15
16pub use app::{App, CommitType, InputMode, LayoutMode, ViewMode};
17pub use compare::{BranchCompare, CompareCommit, CompareTab};
18pub use config::{FilterPreset, FilterPresets, LayoutConfig, PRESET_SLOT_COUNT};
19pub use event::{GitEvent, GitEventKind};
20pub use export::{
21    export_coupling_csv, export_coupling_json, export_heatmap_csv, export_heatmap_json,
22    export_impact_csv, export_impact_json, export_ownership_csv, export_ownership_json,
23    export_stats_csv, export_stats_json, export_timeline_csv, export_timeline_json, ExportFormat,
24};
25pub use filter::FilterQuery;
26pub use git::{
27    checkout_branch, checkout_branch_in_repo, compare_branches, compare_branches_from_repo,
28    create_commit, create_commit_in_repo, fetch_remote_at_path, get_blame, get_blame_from_repo,
29    get_commit_diff, get_commit_diff_from_repo, get_commit_files, get_commit_files_from_repo,
30    get_file_history, get_file_history_from_repo, get_file_patch, get_file_patch_from_repo,
31    get_head_hash, get_head_hash_cached, get_head_hash_from_repo, get_index_mtime,
32    get_index_mtime_cached, get_index_mtime_from_repo, get_repo_info_cached, get_stash_list,
33    get_status, get_status_cached, get_status_from_repo, has_staged_files,
34    has_staged_files_in_repo, list_branches, list_branches_cached, list_branches_from_repo,
35    load_events, load_events_from_repo, push, push_in_repo, stage_all, stage_all_in_repo,
36    stage_file, stage_file_in_repo, stash_apply, stash_drop, stash_pop, stash_save, unstage_all,
37    unstage_all_in_repo, unstage_file, unstage_file_in_repo, BlameLine, CommitDiff, DiffLine,
38    DiffStats, FileChange, FileChangeStatus, FileHistoryEntry, FilePatch, FileStatus,
39    FileStatusKind, RepoInfo, StashEntry,
40};
41pub use graph::{build_graph, get_graph_color, GraphCell, GraphLayout, GraphRow};
42pub use related_files::{analyze_related_files, RelatedFiles};
43pub use relevance::{calculate_relevance, RelevanceScore};
44pub use stats::{
45    calculate_activity_timeline, calculate_change_coupling, calculate_file_heatmap,
46    calculate_impact_scores, calculate_ownership, calculate_stats, ActivityTimeline,
47    AggregationLevel, AuthorStats, ChangeCouplingAnalysis, CodeOwnership, CodeOwnershipEntry,
48    CommitImpactAnalysis, CommitImpactScore, FileCoupling, FileHeatmap, FileHeatmapEntry,
49    RepoStats,
50};
51pub use suggestion::{generate_suggestions, CommitSuggestion};
52pub use topology::{
53    analyze_topology, analyze_topology_from_repo, BranchHealth, BranchRelation, BranchStatus,
54    BranchTopology, HealthWarning, TopologyBranch, TopologyConfig,
55};