Module git_interop

Module git_interop 

Source

Structs§

CommitWithNotes
Represents a commit with its associated git-notes data and metadata.
ReadBranchGuard
Guard for a temporary read branch that includes all pending writes. Automatically cleans up the temporary reference when dropped.

Functions§

add_note_line
Appends a note line to a specific commit with exponential backoff retry logic.
add_note_line_to_head
Add a note line to HEAD (convenience wrapper)
check_git_version
create_consolidated_read_branch
Creates a temporary read branch that consolidates all pending writes. The returned guard must be kept alive for as long as the reference is needed. The temporary reference is automatically cleaned up when the guard is dropped.
get_head_revision
get_repository_root
Get the repository root directory using git
is_shallow_repository
Check if the current repository is a shallow clone
list_commits_with_measurements
Returns a list of all commit SHA-1 hashes that have performance measurements in the refs/notes/perf-v3 branch.
prune
pull
push
remove_measurements_from_commits
resolve_committish
Resolves a committish reference to a full SHA-1 hash and verifies the commit exists.
walk_commits
Walk commits starting from HEAD (convenience wrapper)
walk_commits_from
Retrieves raw git notes data for commits starting from a specific commit.