MCPcopy Create free account
hub / github.com/docker/buildx / FullCommit

Method FullCommit

util/gitutil/gitutil.go:79–81  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

77}
78
79func (cli *GitCLI) FullCommit(ctx context.Context) (string, error) {
80 return cli.clean(cli.Run(ctx, "show", "--format=%H", "HEAD", "--quiet", "--"))
81}
82
83func (cli *GitCLI) ShortCommit(ctx context.Context) (string, error) {
84 return cli.clean(cli.Run(ctx, "show", "--format=%h", "HEAD", "--quiet", "--"))

Callers 2

TestGitFullCommitFunction · 0.80
TestGitFullCommitErrFunction · 0.80

Calls 2

cleanMethod · 0.95
RunMethod · 0.80

Tested by 2

TestGitFullCommitFunction · 0.64
TestGitFullCommitErrFunction · 0.64