|
|
@ -9,6 +9,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
var fs = require('fs');
|
|
|
|
var path = require('path');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
var exists = require('fs-exists-sync');
|
|
|
|
var extend = require('extend-shallow');
|
|
|
|
var extend = require('extend-shallow');
|
|
|
|
var configPath = require('git-config-path');
|
|
|
|
var configPath = require('git-config-path');
|
|
|
|
var ini = require('ini');
|
|
|
|
var ini = require('ini');
|
|
|
@ -133,14 +134,6 @@ parse.keys = function parseKeys(config) {
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function exists(fp) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
fs.statSync(fp);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
} catch (err) {}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Expose `parse`
|
|
|
|
* Expose `parse`
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|