Reminds me of a story I heard from a friend. Some consulting firm came in to the company and decided, based on number of commits (or some such metric), that one particular engineer was the lowest performing engineer on the team. So, management fired them. Turns out that engineer was the one who everyone side-channeled with to get help when blocked. They were the one who knew the system best and were enabling everyone…
Indeed, some SCM metrics could be used to reach exactly the wrong conclusion: lines-of-code add/removed. Oh my gosh! Jonny coder over there has been deleting, deleting! our code. Fire him immediately! Many years ago there was a discussion on HN about that same topic[1] (And since then many more I'm sure). 1 - https://news.ycombinator.com/item?id=10734815
Metrics are frequently inaccurate and easy to game.