libgit2/tests/config
Carlos Martín Nieto 9dac1f9579 config: a multiline var can start immediately
In the check for multiline, we traverse the backslashes from the end
backwards and int the end assert that we haven't gone past the beginning
of the line. We make sure of this in the loop condition, but we also
check in the return value.

However, for certain configurations, a line in a multiline variable
might be empty to aid formatting. In that case, 'end' == 'start', since
we ended up looking at the first char which made it a multiline.

There is no need for the (end > start) check in the return, since the
loop guarantees we won't go further back than the first char in the
line, and we do accept the first char to be the final backslash.

This fixes #2483.
2014-08-09 11:06:49 +02: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 tests: Introduce count_config_entries_match() helper 2014-04-30 07:24:20 +02:00
config_helpers.h tests: Introduce count_config_entries_match() helper 2014-04-30 07:24:20 +02:00
configlevel.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
global.c Better search path sandboxing 2014-05-15 10:56:28 -07:00
include.c Better search path sandboxing 2014-05-15 10:56:28 -07:00
multivar.c config: refresh on delete 2014-04-18 16:07:33 +02:00
new.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
read.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
refresh.c config: refresh before reading a value 2014-04-18 16:07:33 +02:00
rename.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
snapshot.c config: refresh before reading a value 2014-04-18 16:07:33 +02:00
stress.c config: a multiline var can start immediately 2014-08-09 11:06:49 +02:00
validkeyname.c Improve GIT_EUSER handling 2013-12-11 10:57:49 -08:00
write.c Add unit test to test add section without lf at EOF 2014-07-16 21:54:53 +08:00