MCPcopy Create free account
hub / github.com/bufbuild/buf / CommitOrTag

Method CommitOrTag

private/bufpkg/bufconfig/input_config.go:148–148  ·  view source on GitHub ↗

CommitOrTag returns the full commit hash or tag to checkout, not empty only if format is git.

()

Source from the content-addressed store, hash-verified

146 Branch() string
147 // CommitOrTag returns the full commit hash or tag to checkout, not empty only if format is git.
148 CommitOrTag() string
149 // Ref returns the git ref to checkout, not empty only if format is git.
150 Ref() string
151 // Depth returns the depth to clone the git repo with, not empty only if format is git.

Implementers 1

inputConfigprivate/bufpkg/bufconfig/input_config.

Calls

no outgoing calls

Tested by

no test coverage detected