<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/config, branch cmn/diff-binary-patch</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>config: test all multivars are updated</title>
<updated>2015-05-04T12:41:41+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-05-04T12:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d6b7e40497097e4e540962b8efc6a1661b5739a4'/>
<id>d6b7e40497097e4e540962b8efc6a1661b5739a4</id>
<content type='text'>
If a multivar exists within two sections (of the same name)
then they should both be updated in a `set_multivar`.  Ensure
that this is the case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a multivar exists within two sections (of the same name)
then they should both be updated in a `set_multivar`.  Ensure
that this is the case.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: use wildcard in test instead of empty expr</title>
<updated>2015-05-04T12:41:40+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-27T20:31:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=0daf998de78b2484eefe47c15e883b7eef7b71a7'/>
<id>0daf998de78b2484eefe47c15e883b7eef7b71a7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: cleanup some now-unused variables</title>
<updated>2015-05-04T12:41:38+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-27T20:29:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=63c0cc65bc27850d0fab214370a9814c928911b6'/>
<id>63c0cc65bc27850d0fab214370a9814c928911b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Test setting config var under duplicate header.</title>
<updated>2015-05-04T12:41:36+00:00</updated>
<author>
<name>Ryan Roden-Corrent</name>
<email>ryrode@microsoft.com</email>
</author>
<published>2015-04-21T19:57:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=5a70df94364f5ca7cbf6db2a881b291b8476c4bf'/>
<id>5a70df94364f5ca7cbf6db2a881b291b8476c4bf</id>
<content type='text'>
Add a test that exposes a bug in config_write.
It is valid to have multiple separate headers for the same config section, but
config_write will exit after finding the first matching section in certain
situations.
This test proves that config_write will duplicate a variable that already
exists instead of overwriting it if the variable is defined under a duplicate
section header.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a test that exposes a bug in config_write.
It is valid to have multiple separate headers for the same config section, but
config_write will exit after finding the first matching section in certain
situations.
This test proves that config_write will duplicate a variable that already
exists instead of overwriting it if the variable is defined under a duplicate
section header.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: examine whole file when writing</title>
<updated>2015-05-04T12:41:33+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-23T20:54:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=bf99390eefb66c03ad56cd5131078817092d3322'/>
<id>bf99390eefb66c03ad56cd5131078817092d3322</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: test overwriting cvar in multiple regions</title>
<updated>2015-05-04T12:41:31+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-23T16:00:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f79c7322a9b5dff4769ed02f3ce987ce7061e012'/>
<id>f79c7322a9b5dff4769ed02f3ce987ce7061e012</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: ensure we can write to an empty file</title>
<updated>2015-05-04T12:41:30+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-21T21:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=7ee61b8ee30c9d54b76137462a08865aa2915bc8'/>
<id>7ee61b8ee30c9d54b76137462a08865aa2915bc8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: ensure we can write to an empty file</title>
<updated>2015-04-23T15:25:03+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-21T21:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=6dc55872a86df3428e312455333b19b42664c355'/>
<id>6dc55872a86df3428e312455333b19b42664c355</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: test that we validate the key</title>
<updated>2015-04-23T15:24:50+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-04-21T16:49:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=23fb4004ed4a843f110e8679ea8d9151531da45a'/>
<id>23fb4004ed4a843f110e8679ea8d9151531da45a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Specify mock config file content in test.</title>
<updated>2015-04-21T18:21:52+00:00</updated>
<author>
<name>Ryan Roden-Corrent</name>
<email>ryrode@microsoft.com</email>
</author>
<published>2015-04-16T19:20:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f56a417de4b2b670b6c86017f73671a519989488'/>
<id>f56a417de4b2b670b6c86017f73671a519989488</id>
<content type='text'>
Instead of using a config file in resources, include the config file content to
be tested directly in the test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using a config file in resources, include the config file content to
be tested directly in the test.
</pre>
</div>
</content>
</entry>
</feed>
