Updated: generalised identification of hash, branch, tag