RefToId parse a git reference and return the corresponding Entity's Id.
(ref string)
| 15 | |
| 16 | // RefToId parse a git reference and return the corresponding Entity's Id. |
| 17 | func RefToId(ref string) Id { |
| 18 | split := strings.Split(ref, "/") |
| 19 | return Id(split[len(split)-1]) |
| 20 | } |