{"modulePath":"github.com/uber/submitqueue","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\nPackage git parses change IDs that use the git:// URI scheme.\n\n## Types\n\n```go\ntype ChangeID struct {\n\t// Scheme captures the URI scheme (always \"git\" in current implementation).\n\tScheme string\n\t// Remote is the host (or host:port) of the git remote the repository lives\n\t// on (e.g. \"git.example.com\" or \"git.example.com:9418\").\n\tRemote string\n\t// Repo is the path to the repository on the remote and may contain slashes\n\t// (e.g. \"uber/monorepo\" or \"team/group/repo.git\").\n\tRepo string\n\t// Ref is the fully-qualified git ref the change landed on, decoded from the\n\t// URI (e.g. \"refs/heads/main\", \"refs/tags/v1.0\").\n\tRef string\n\t// CommitSHA is a commit that ref has pointed to at some point in time.\n\tCommitSHA string\n}\n```\nChangeID represents a parsed git:// change identifier. Format: git://{remote}/{repo}/{ref}/{commit\\_sha}\n\nRef is a fully-qualified, percent-encoded git ref so that branches, tags, and ref names containing slashes all fit a single path segment unambiguously.\n\n```go\nfunc ParseChangeID(raw string) (ChangeID, error)\n```\nParseChangeID parses a raw change ID string into a ChangeID. Expected format: git://{remote}/{repo}/{ref}/{commit\\_sha}, where {ref} is a fully-qualified, percent-encoded git ref (e.g. \"refs%2Fheads%2Fmain\").\n\n```go\nfunc (c ChangeID) String() string\n```\nString returns the string representation of the change ID.\n\n","path":"github.com/uber/submitqueue/platform/base/change/git","name":"git","synopsis":"Package git parses change IDs that use the git:// URI scheme.","isRedistributable":true}
