MCPcopy Create free account
hub / github.com/git-bug/git-bug / RefsToIds

Function RefsToIds

entity/refs.go:6–14  ·  view source on GitHub ↗

RefsToIds parse a slice of git references and return the corresponding Entity's Id.

(refs []string)

Source from the content-addressed store, hash-verified

4
5// RefsToIds parse a slice of git references and return the corresponding Entity's Id.
6func RefsToIds(refs []string) []Id {
7 ids := make([]Id, len(refs))
8
9 for i, ref := range refs {
10 ids[i] = RefToId(ref)
11 }
12
13 return ids
14}
15
16// RefToId parse a git reference and return the corresponding Entity's Id.
17func RefToId(ref string) Id {

Callers 3

RemoveFunction · 0.92
ListLocalIdsFunction · 0.92
ListLocalIdsFunction · 0.92

Calls 1

RefToIdFunction · 0.85

Tested by

no test coverage detected