Carlos Martín Nieto
47db054df0
config: distinguish between a lone variable name and one without rhs
...
'[section] variable' and '[section] variable =' behave differently
when parsed as booleans, so we need to store that distinction
internally.
2012-11-13 13:53:41 -08:00
delanne
bcad677ba8
- Update 'tests-clar/resources/config/config11' in order to reproduce the invalidread with the unittest (just added some \n at the end of the file)
...
- Fix config_file.c
2012-11-08 12:28:21 +01:00
yorah
a1abe66aca
Add config level support in the config API
...
Added `struct git_config_entry`: a git_config_entry contains the key, the value, and the config file level from which a config element was found.
Added `git_config_open_level`: build a single-level focused config object from a multi-level one.
We are now storing `git_config_entry`s in the khash of the config_file
2012-10-23 12:48:38 +02:00
yorah
f8ede94808
Fix adding variable to config file with no trailing newline
...
This can occur after a manual modification of a config file.
2012-10-23 11:48:50 +02:00
Russell Belfer
a1ecddf01c
Fix config parser boundary logic
...
The config file parser was not working right if there was no
whitespace between the value name and the equals sign. This
fixes that.
2012-08-12 07:59:30 -07:00
Vicent Martí
a1d0802576
Backport more test data
2012-05-02 16:33:26 -07:00
Ben Straub
fd29cd13b7
Moved testing resources to clar, and removed old tests directory.
...
Removed the BUILD_CLAR CMake flag, and updated the readme.
2012-03-31 16:10:01 -07:00