Parse and cache .gitmodules contents in memory.