Ejemplo n.º 1
0
        public bool TryGetAllConfig(bool localOnly, out Dictionary <string, GitConfigSetting> configSettings)
        {
            configSettings = null;
            string       localParameter = localOnly ? "--local" : string.Empty;
            ConfigResult result         = new ConfigResult(this.InvokeGitAgainstDotGitFolder("config --list " + localParameter), "--list");

            if (result.TryParseAsString(out string output, out string _, string.Empty))
            {
                configSettings = GitConfigHelper.ParseKeyValues(output);
                return(true);
            }

            return(false);
        }