Global options setter
Merge pull request #1271 from libgit2/global-settings

Global options setter