Documentation
¶
Overview ¶
Package git provides functionality to resolve Git repository commit checksums
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
Client handles git operations
func (*Client) GetCommitChecksum ¶
GetCommitChecksum resolves a git reference to its commit SHA Uses git ls-remote to fetch the commit without cloning the repository Delegates to BuildKit's gitutil for authentication, SSH, and proxy support
type GitRef ¶
type GitRef struct {
// Remote is the git remote URL (without fragment)
Remote string
// Ref is the git reference (branch, tag, or commit)
Ref string
// Subdir is the optional subdirectory path
Subdir string
}
GitRef represents a parsed git reference
func ParseGitURL ¶
ParseGitURL parses a git URL that may contain a fragment with ref and subdir Format: <url>#<ref>[:<subdir>] Examples:
- https://github.com/owner/repo.git#v1.0.0
- https://github.com/owner/repo.git#main:subdirectory
- git@github.com:owner/repo.git#branch
Click to show internal directories.
Click to hide internal directories.