src/indexOld.js
function setConfig(config, withCommit, message){
        jsonfile.writeFileSync(configPath, config, {spaces: 2});
        if(withCommit) {
            return _commit(null, ["config.json"],
                message || "Changed the config file");
        }
    }
function setConfig(config, withCommit, message){
        jsonfile.writeFileSync(configPath, config, {spaces: 2});
        if(withCommit) {
            return _commit(null, ["config.json"],
                message || "Changed the config file");
        }
    }
function setConfig ( config , withCommit , message ) { jsonfile . writeFileSync ( configPath , config , { spaces : 2 } ) ; if ( withCommit ) { return _commit ( null , [ "config.json" ] , message || "Changed the config file" ) ; } }
Update the repository config.json file using a JavasScript Object
@method setConfig
@param {Object} config The config Object to save
@param {boolean} withCommit If true commits the changes to the repository
@param {String} message If supplied it is used as the message for the commit
@returns {Promise} If withCommit is true, the function returns a Promise
Update the repository config . json file using a JavasScript Object