[PATCH/RFC] config: Add config sets for config parsing retrieval

2014-06-27 Thread Tanay Abhra
Add a hash table to cache all key-value pairs read from config files (repo specific .git/config, user wide ~/.gitconfig and the global /etc/gitconfig). Add two external functions `git_config_get_string` and `git_config_get_string_multi` for querying in a non-callback manner from the hash table.

Re: [PATCH/RFC] config: Add config sets for config parsing retrieval

2014-06-27 Thread Junio C Hamano
Tanay Abhra tanay...@gmail.com writes: API functions: 1. int git_config_get_value(char *k, char **v): The most generic function, traverses the usual config functions for values. (internally uses the the_config_set struct) This may also want to be accompanied by a set of more