git show --name-only
does what i want, but there's a header, which my script then mangles
git show --name-only | head -n 5
Shows the bit i don't want.
git show --name-only | tail -n +7
Nails it.
Surely there is a better way?
Specifically, I want the names (and paths) of all the files which exist and are version controlled in the current state of my repository.
git show
by default lists all the files modified in the latest commit, not all the files.