contacts: reduce git-blame invocations