Performance fix.
- Use 'git rev-parse HEAD' for cached files.
- Option to call 'git ls-files' once.
- Mark sources as delayed.