libgit2/tests/config
Edward Thomson bf99390eef config: examine whole file when writing
Previously we would try to be clever when writing the configuration
file and try to stop parsing (and simply copy the rest of the old
file) when we either found the value we were trying to write,
or when we left the section that value was in, the assumption being
that there was no more work to do.

Regrettably, you can have another section with the same name later
in the file, and we must cope with that gracefully, thus we read the
whole file in order to write a new file.

Now, writing a file looks even more than reading.  Pull the config
parsing out into its own function that can be used by both reading
and writing the configuration.
2015-05-04 07:41:33 -05:00
..
add.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
backend.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
config_helpers.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
config_helpers.h tests: Introduce count_config_entries_match() helper 2014-04-30 07:24:20 +02:00
configlevel.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
global.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
include.c Plug a few leaks 2015-03-04 00:29:37 +01:00
multivar.c config: refresh on delete 2014-04-18 16:07:33 +02:00
new.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
read.c config: test that we validate the key 2015-04-23 11:24:50 -04:00
rename.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
snapshot.c config test: clean up memory leak 2014-10-26 22:27:48 -04:00
stress.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
validkeyname.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
write.c config: examine whole file when writing 2015-05-04 07:41:33 -05:00