Only show diff/build links if there is a branch.