mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
So far, GetConfigs loaded the nested submodules of an entry as soon as it saw the entry's path line. Parse the whole file first, and load the nested submodules in a second loop. This prepares for checking the name and path of each entry before using it. This only makes a difference for malformed entries. If the path value is empty, we no longer read the same .gitmodules file over and over. If an entry has several path lines, we no longer load its nested submodules several times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>