Reference constructor
Implementation
Reference(String source, String target) {
name = ReferenceName(source);
if (target.startsWith(symbolicRefPrefix)) {
this.target = ReferenceName(target.substring(symbolicRefPrefix.length));
type = ReferenceType.Symbolic;
return;
}
hash = GitHash(target);
type = ReferenceType.Hash;
}