Skip to main content

clankerdiff_core/
lib.rs

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