RefsToIds parse a slice of git references and return the corresponding Entity's Id.
(refs []string)
| 4 | |
| 5 | // RefsToIds parse a slice of git references and return the corresponding Entity's Id. |
| 6 | func 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. |
| 17 | func RefToId(ref string) Id { |
no test coverage detected