Skip to main content

Module refs

Module refs 

Source

Structs§

Reference
Reference - points to a commit (branch, tag, HEAD)

Functions§

delete_ref
Delete a reference
find_repo_root
Find the repository root from current directory
get_current_branch
Get current branch name
get_current_branch_encrypted
Get current branch name (encrypted)
get_lit_dir
Get the Lit directory path
is_lit_repo
Check if a directory is a Lit repository
list_refs
List all references
read_head
Read HEAD reference
read_head_encrypted
Read HEAD reference (encrypted)
read_ref
Read a reference file
read_ref_encrypted
Read an encrypted reference file
set_head_detached
Set HEAD to a specific commit (detached)
set_head_detached_encrypted
Set HEAD to a specific commit (detached, encrypted)
update_head
Update HEAD to point to a branch
update_head_encrypted
Update HEAD to point to a branch (encrypted)
write_ref
Write a reference file
write_ref_encrypted
Write an encrypted reference file