Skip to main content

Module ops

Module ops 

Source
Expand description

Low-level git operations on &git2::Repository

These are the shared implementations behind both RegistryService handlers and CheckpointManager. Each function takes &Repository and parameters, performing a single git operation.

Functionsยง

abort_merge
Abort merge: reset to ORIG_HEAD, cleanup state
amend_head
Amend HEAD commit with staged changes
commit_index
Commit staged changes with default signature
commit_with_author
Commit with explicit author
continue_merge
Continue merge: check no conflicts, create merge commit, cleanup
create_tag
Create lightweight tag
delete_tag
Delete a tag
detailed_status
Detailed status with per-file change info, ahead/behind, merge state
ensure_branch
Ensure branch exists, creating from HEAD if needed; switch to it
fetch
Fetch from remote with optional refspec
list_tags
List all tags
merge
Merge a source branch into the current branch
push
Push to remote
quit_merge
Quit merge: cleanup state only
sanitize_tag_name
Sanitize a string for use as a Git tag name
stage_all
Stage all tracked modified files (git add -u)
stage_all_with_untracked
Stage all files including untracked (git add -A)
stage_files
Stage specific files by relative path