bit_apply

Unified-diff patch application

git
patch
apply
moon add mizchi/bit_apply@0.46.4
Download zip
Author
Version
0.46.4
License
Apache-2.0
Last updated
4 days ago
Downloads
58
README

#
PatchInfo

pub(all) struct PatchInfo {
display_name : String
additions : Int
deletions : Int
is_rename : Bool
is_copy : Bool
is_new : Bool
is_delete : Bool
old_name : String
new_name : String
old_mode : String
new_mode : String
similarity_index : Int
dissimilarity_index : Int
}

#
make_rename_display

fn make_rename_display(old_name : String, new_name : String) -> String

#
parse_diff_git_header

fn parse_diff_git_header(rest : String) -> (String, String)

#
parse_patches

fn parse_patches(patch : String) -> Array[PatchInfo]

#
parse_pct

fn parse_pct(s : String) -> Int

#
reverse_patch

fn reverse_patch(patch : String) -> String

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io