public static String getName(final GitReference ref) {
        if (ref != null) {
            return getName(ref.ref());
        } else {
            return null;
        }
    }
Get short name for ref

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