Add a cache for storing previous project file lists when the project is stored as a git repo. The cache is invalidated whenever HEAD changes.