// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie // SPDX-License-Identifier: MIT //! Comparing two texts as `git diff` does, and writing the patch: the //! line diff, its hunks, and the patch for one file. /// Two texts compared line by line. pub const LineDiff = @import("diff/LineDiff.zig"); /// Changes gathered into hunks, and function names after `@@`. pub const hunks = @import("diff/hunks.zig"); /// The patch for one file. pub const patch = @import("diff/patch.zig"); /// Every format `git diff` writes for a list of changed paths. pub const output = @import("diff/output.zig"); /// How alike two files are, as rename detection scores them. pub const similarity = @import("diff/similarity.zig"); /// Renames and copies found among changed paths. pub const renames = @import("diff/renames.zig"); /// Combined diffs of a merge against its parents. pub const combined = @import("diff/combined.zig"); /// Function lines as diff drivers find them: `xfuncname`, `funcname` /// and git's built-in drivers. pub const funcname = @import("diff/funcname.zig"); /// The pickaxe: `-S`, `-G` and `--find-object`. pub const pickaxe = @import("diff/pickaxe.zig"); /// The order paths are written in: orderfiles, `--skip-to`, `--rotate-to`. pub const order = @import("diff/order.zig"); /// `--check`: whitespace errors and conflict markers. pub const check = @import("diff/check.zig"); /// `--dirstat`: how changes spread over directories. pub const dirstat = @import("diff/dirstat.zig"); test { _ = LineDiff; _ = hunks; _ = patch; _ = output; _ = similarity; _ = renames; _ = combined; _ = funcname; _ = pickaxe; _ = order; _ = check; _ = dirstat; }