Shorten command by always printing a `,` as separator and differentiating between remote and head refs by a leading slash.