go-git icon indicating copy to clipboard operation
go-git copied to clipboard

Add global and system config support

Open djgilcrease opened this issue 5 years ago • 3 comments

Loads the config the same way git does, System, then Global, then Local so overrides are maintained properly.

Closes #760

djgilcrease avatar Nov 15 '19 02:11 djgilcrease

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?

cap10morgan avatar Mar 30 '20 15:03 cap10morgan

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.

cap10morgan avatar Apr 01 '20 20:04 cap10morgan

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.

djgilcrease avatar Apr 02 '20 22:04 djgilcrease