Match ref style in commit details to the history view