Add reftype property to origin object
Currently, the reftype is inferred from the presence of the branch
or tag
property on the origin. If/when we add support for commits (#831), it will make the logic to infer the reftype even more complex (it will have to check for the absence of either property or the presence of the commit
property). It's just simpler to have a dedicated property named reftype
that contains this information (branch, tag, or, in the future, commit).
The reftype should also be made available as a replacement variable (i.e., {reftype}
) in the edit_url value.