MCPcopy
hub / github.com/github/github-mcp-server / encodeBlameCursor

Function encodeBlameCursor

pkg/github/repositories.go:2274–2276  ·  view source on GitHub ↗
(offset int)

Source from the content-addressed store, hash-verified

2272const blameCursorPrefix = "blame-range:"
2273
2274func encodeBlameCursor(offset int) string {
2275 return base64.RawURLEncoding.EncodeToString(fmt.Appendf(nil, "%s%d", blameCursorPrefix, offset))
2276}
2277
2278func decodeBlameCursor(cursor string) (int, error) {
2279 if cursor == "" {

Callers 2

GetFileBlameFunction · 0.85
Test_GetFileBlameFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_GetFileBlameFunction · 0.68