Use "git ls-files" to get the list of files managed by the repo.
(cherry picked from commit 68c7a0656ea3e81b5adc91e185cd4f06c999cd4d)
Remove "$Revision$" and "$Id$" keywords, which are not expanded by Git.