public static String getName(final String name) {
        if (TextUtils.isEmpty(name)) {
            return name;
        }
        if (name.startsWith(PREFIX_HEADS)) {
            return name.substring(PREFIX_HEADS.length());
        } else if (name.startsWith(PREFIX_TAG)) {
            return name.substring(PREFIX_TAG.length());
        } else if (name.startsWith(PREFIX_REFS)) {
            return name.substring(PREFIX_REFS.length());
        } else {
            return name;
        }
    }
Get short name for ref

@param name
@return short name
app/src/main/java/com/github/pockethub/android/core/ref/RefUtils.java