Extended git config API and added initial test.