Bottleneck Git ref qualification and apply it uniformly