// Generated by CoffeeScript 1.9.3
(function() {
  var C, Config;

  module.exports = C = function(repo, callback) {
    return repo.git("config", {
      list: true
    }, function(err, stdout, stderr) {
      var config;
      config = new Config(repo);
      config.parse(stdout);
      return callback(err, config);
    });
  };

  C.Config = Config = (function() {
    function Config(repo1) {
      this.repo = repo1;
    }

    Config.prototype.parse = function(text) {
      var i, key, len, line, ref, ref1, results, value;
      this.items = {};
      ref = text.split("\n");
      results = [];
      for (i = 0, len = ref.length; i < len; i++) {
        line = ref[i];
        if (line.length === 0) {
          continue;
        }
        ref1 = line.split('='), key = ref1[0], value = ref1[1];
        results.push(this.items[key] = value);
      }
      return results;
    };

    return Config;

  })();

}).call(this);
