Skip to main content

clankerdiff_core/
lib.rs

1pub mod anchor;
2pub mod commands;
3pub mod content;
4pub mod error;
5pub mod models;
6pub mod parser;
7pub mod presentation;
8pub mod review;
9pub mod session;
10
11#[cfg(any(test, feature = "test-support"))]
12pub mod testing;
13
14pub use anchor::LineAnchor;
15pub use clankerdiff_fingerprint::{Fingerprint, FingerprintError, SourceSequenceId};
16pub use commands::{
17    CommandContext, DiffReviewCommand, FocusPane, InteractionPhase, ReviewCapabilities,
18    ReviewCommand,
19};
20pub use content::{
21    MAX_SOURCE_FILE_BYTES, MAX_SOURCE_FILE_LINES, SourceDocument, SourceLineRef, SourceLocation,
22    SourceResult, SourceUnavailable,
23};
24pub use error::{DiffError, ParseDiffScopeError, RepoPathError};
25pub use models as model;
26pub use models::{
27    DiffDocument, DiffScope, DiffSide, FileDiff, FileStatus, Hunk, ModeChange, PatchLine,
28    PatchLineKind, RepoPath, StageState,
29};
30pub use parser::{GitStatusEntry, UntrackedFile, parse_git_diff, parse_porcelain_v1_z};
31pub use presentation::{
32    ContentProjection, DiffPresentation, DiffTone, GapExpansion, GapId, GapInfo, GapInterval,
33    HunkSequence, Layout, MAX_HUNK_SEQUENCE_LINES, PresentationOptions, PresentedCell,
34    PresentedRow, RowId, RowKind, ViewMode, gaps_for_file,
35};
36pub use review::{
37    AgentFeedbackOptions, CommentContext, DiffReviewEvent, RepositoryAction, Review, ReviewComment,
38    ReviewSubmission, format_review,
39};
40pub use session::{CommentDraft, RevealAmount, ReviewSession, SessionOptions};