libgit2/tests-clar/config
Carlos Martín Nieto 0da81d2b39 config: return an emtpy string when there is no value
Returning NULL for the string when we haven't signaled an error
condition is counter-intuitive and causes unnecessary edge
cases. Return an empty string when asking for a string value for a
configuration variable such as '[section] var' to avoid these edge
cases.

If the distinction between no value and an empty value is needed, this
can be retrieved from the entry directly. As a side-effect, this
change stops the int parsing functions from segfaulting on such a
variable.
2012-11-13 14:49:16 -08:00
..
add.c global: Fix unit tests after reordering 2012-05-18 01:25:57 +02:00
config_helpers.c remote: introduce git_remote_rename() 2012-10-25 17:42:36 +02:00
config_helpers.h remote: introduce git_remote_rename() 2012-10-25 17:42:36 +02:00
configlevel.c Remove unused variables 2012-11-13 14:28:44 +01:00
multivar.c Add config level support in the config API 2012-10-23 12:48:38 +02:00
new.c Add config level support in the config API 2012-10-23 12:48:38 +02:00
read.c config: return an emtpy string when there is no value 2012-11-13 14:49:16 -08:00
refresh.c Add git_config_refresh() API to reload config 2012-10-30 12:11:23 -07:00
stress.c Add config level support in the config API 2012-10-23 12:48:38 +02:00
write.c Add config level support in the config API 2012-10-23 12:48:38 +02:00