Add static fullName() method to RefNames, use it.

This reduces the proliferation of duplicated code to figure out if the
ref is already in long format (starting with "refs/") or not.

Change-Id: I058595e086f10844cf99cc746db713deb1b03e9f
5 files changed