go-git
go-git copied to clipboard
Add global and system config support
Loads the config the same way git does, System, then Global, then Local so overrides are maintained properly.
Closes #760
Thanks for submitting this PR, @djgilcrease. I would love to have this functionality for a project I'm working on using go-git. It seems that they've moved all development to this repo: https://github.com/go-git/go-git. Can you resubmit this PR over there?
Ran into an issue with this, which I may try to fix and submit an updated PR to the new go-git/go-git repo. Namely, when you load up your config with this code and then later run a SetConfig
, it copies your merged system, global, local config into your local .git/config
file. That's probably not what we want for general behavior there.
sounds good to me, I am on vacation for the next few weeks so will not be able to do anything with it for a long while.