bit_repo_ops

Repository-level operations (revparse, etc.)

git
repo
moon add mizchi/bit_repo_ops@0.46.4
Download zip
Author
Version
0.46.4
License
Apache-2.0
Last updated
4 days ago
Downloads
74
README

#
append_reflog

fn append_reflog(wfs : &
FileSystem
, rfs : &
RepoFileSystem
, git_dir : String, refname : String, old_id :
ObjectId
, new_id :
ObjectId
, author : String, email : String, timestamp : Int64, timezone : String, message : String) -> Unit raise
GitError

#
apply_template

fn apply_template(wfs : &
FileSystem
, rfs : &
RepoFileSystem
, git_dir : String, template_dir : String) -> Unit raise
GitError

#
create_reflog

fn create_reflog(wfs : &
FileSystem
, rfs : &
RepoFileSystem
, git_dir : String, refname : String) -> Unit raise
GitError

#
delete_reflog

fn delete_reflog(wfs : &
FileSystem
, rfs : &
RepoFileSystem
, git_dir : String, refname : String) -> Unit raise
GitError

#
init_repo

fn init_repo(fs : &
FileSystem
, root : String, default_branch? : String, bare? : Bool) -> Unit raise
GitError

#
init_repo_with_options_with_repo_fs

#
parse_upstream_push_spec

fn parse_upstream_push_spec(spec : String) -> (String, String, String)?

Parse a spec containing @{upstream}, @{u}, @{push}, or @{p} (case-insensitive). Returns (branch_name_or_empty, "upstream"|"push", rest_after_closing_brace) or None. Finds the LAST @{ occurrence to handle branch names containing @.

#
reflog_exists

fn reflog_exists(fs : &
RepoFileSystem
, git_dir : String, refname : String) -> Bool

#
resolve_push_ref

fn resolve_push_ref(fs : &
RepoFileSystem
, git_dir : String, branch : String) -> String raise
GitError

Resolve @{push} for a branch. Returns the push tracking ref name.

#
resolve_upstream_ref

fn resolve_upstream_ref(fs : &
RepoFileSystem
, git_dir : String, branch : String) -> String raise
GitError

Resolve @{upstream} for a branch. Returns the upstream tracking ref name. Errors with descriptive messages matching git behavior.

#
should_log_ref

fn should_log_ref(fs : &
RepoFileSystem
, git_dir : String, refname : String, is_bare : Bool) -> (Bool, Bool) raise
GitError

#
show_ref

List all refs (loose + packed).

#
show_ref_text

fn show_ref_text(fs : &
RepoFileSystem
, git_dir : String) -> Array[String] raise
GitError

Format like git show-ref output.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io