Junio C Hamano <gitster@xxxxxxxxx> writes: > If two codepaths are called "I don't see a meaningful difference", > then it is really better to share the same code. Today, they may > happen to behave identically. When we need to update the behaviour > of one, we'd be forced to update the other one to match. > > IOW, something along this line, perhaps (not even compile tested so > take it with grain of salt). By the way, I have no strong preference between "read-ref, check quiet and show-one" and "show-ref", so if you make --verify to consistently call "show_ref()" for both refs/heads/master and HEAD, that is also perfectly fine. I just do not want to see the same feature/codepath to call two different implementations that happens to do the same thing today. Thanks.