parse-git-config
parse-git-config copied to clipboard
Parse `.git/config` into a JavaScript object. sync or async.
When calling `parse('./directory')`, the string is supposed to be interpreted as `cwd`. https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L36 Yet that value is passed to `resolveConfigPath('./directory')` which treats it as the `type` instead of `cwd`. https://github.com/jonschlinkert/parse-git-config/blob/master/index.js#L58...
Git config supports multiple values for the same key. A real-world example: ``` git config --add url.https://github.com/.insteadof [email protected]: git config --add url.https://github.com/.insteadof ssh://github.com/ ``` parse-git-config doesn't seem to support this;...