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