bit_diff

High-level diff / show

git
diff
moon add mizchi/bit_diff@0.46.4
Download zip
Author
Version
0.46.4
License
Apache-2.0
Last updated
4 days ago
Downloads
53
README

#
DiffFile

pub(all) struct DiffFile {
path : String
kind : DiffKind
old_content : Bytes?
new_content : Bytes?
old_mode : Int?
new_mode : Int?
}

#
DiffKind

pub(all) enum DiffKind {
Added
Modified
Deleted
}

#
diff_index

Diff index against HEAD (git diff --cached).

#
diff_stat

fn diff_stat(files : Array[DiffFile]) -> Array[String]

Format diff as stat summary (like git diff --stat).

#
diff_text

fn diff_text(files : Array[DiffFile], context_lines? : Int) -> Array[String]

Format diff as unified text.

#
diff_trees

Diff two trees by their ObjectIds. Returns DiffFile array.

#
diff_worktree

Diff working tree against index (default git diff).

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io