git-gui: Refactor git-config --list parsing