tools: update tools/codelines to use "git ls-files"

Bruce Momjian <bruce@momjian.us>

Commit: 5d4dc112c7c6c10be739d61e8be012f20e9fdbbf
Author: Bruce Momjian <bruce@momjian.us>
Date: 2025-11-20T20:23:39Z
tools:  update tools/codelines to use "git ls-files"

This generates a more accurate code count because 'make distclean'
doesn't always remove build files.

Author: idea from David Rowley

Discussion: https://postgr.es/m/aR4hoOotVHB7TXo5@momjian.us

Backpatch-through: master

Files

PathChange+/−
src/tools/codelines modified +2 −2