<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/config.c, branch vmg/full-ref-iterator</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>Typedef git_config_level_t and use it everywhere</title>
<updated>2013-05-24T17:35:58+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-24T17:35:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=16adc9fade52b49e2bc13cb52407cc0025a93c8b'/>
<id>16adc9fade52b49e2bc13cb52407cc0025a93c8b</id>
<content type='text'>
The GIT_CONFIG_LEVEL constants actually work well as an enum
because they are mutually exclusive, so this adds a typedef to
the enum and uses that everywhere that one of these constants are
expected, instead of the old code that typically used an unsigned
int.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The GIT_CONFIG_LEVEL constants actually work well as an enum
because they are mutually exclusive, so this adds a typedef to
the enum and uses that everywhere that one of these constants are
expected, instead of the old code that typically used an unsigned
int.
</pre>
</div>
</content>
</entry>
<entry>
<title>More config code checks and cleanups</title>
<updated>2013-05-23T23:11:53+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-23T23:11:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=0700ca1a74b58b73c4fb9ececffeaa80046c2f58'/>
<id>0700ca1a74b58b73c4fb9ececffeaa80046c2f58</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>More tests of config with various absent files</title>
<updated>2013-05-23T22:57:52+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-23T16:19:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3b32b6d3cc649a7808151dd67d1dd3e45e202f08'/>
<id>3b32b6d3cc649a7808151dd67d1dd3e45e202f08</id>
<content type='text'>
Plus a bit of extra paranoia to ensure config object has valid
contents.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Plus a bit of extra paranoia to ensure config object has valid
contents.
</pre>
</div>
</content>
</entry>
<entry>
<title>Unify whitespaces to tabs</title>
<updated>2013-05-15T12:26:55+00:00</updated>
<author>
<name>Linquize</name>
<email>linquize@yahoo.com.hk</email>
</author>
<published>2013-05-15T12:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=0cb16fe924fb5c4e58866c28b06ace876e2dcbd3'/>
<id>0cb16fe924fb5c4e58866c28b06ace876e2dcbd3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: convenience function to open global/xdg</title>
<updated>2013-05-07T19:42:56+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2013-05-06T22:10:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=5d8318875fc7234d00140ce1f18b67bc4703e5f4'/>
<id>5d8318875fc7234d00140ce1f18b67bc4703e5f4</id>
<content type='text'>
The rules for which one to open is a bit silly, so let's make it
easier for our users.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The rules for which one to open is a bit silly, so let's make it
easier for our users.
</pre>
</div>
</content>
</entry>
<entry>
<title>repo: unconditionally create a global config backend</title>
<updated>2013-05-07T19:42:56+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2013-05-06T19:51:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=a4b75dcf56bc8e6d295cae89e2f5871c4707af21'/>
<id>a4b75dcf56bc8e6d295cae89e2f5871c4707af21</id>
<content type='text'>
When a repository is initialised, we need to probe to see if there is
a global config to load. If this is not the case, the user isn't able
to write to the global config without creating the backend and adding
it themselves, which is inconvenient and overly complex.

Unconditionally create and add a backend for the global config file
regardless of whether it exists as a convenience for users.

To enable this, we allow creating backends to files that do not exist
yet, changing the semantics somewhat, and making some tests invalid.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a repository is initialised, we need to probe to see if there is
a global config to load. If this is not the case, the user isn't able
to write to the global config without creating the backend and adding
it themselves, which is inconvenient and overly complex.

Unconditionally create and add a backend for the global config file
regardless of whether it exists as a convenience for users.

To enable this, we allow creating backends to files that do not exist
yet, changing the semantics somewhat, and making some tests invalid.
</pre>
</div>
</content>
</entry>
<entry>
<title>More care catching and setting config errors</title>
<updated>2013-05-01T20:38:56+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-05-01T20:38:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3f663178ed856a333fd11d8dd57231ebe331baf2'/>
<id>3f663178ed856a333fd11d8dd57231ebe331baf2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Catch issue in config set with no config file</title>
<updated>2013-04-30T10:15:45+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-04-30T10:15:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=0a1755c045b930de474883eb6e7fedcc3403b494'/>
<id>0a1755c045b930de474883eb6e7fedcc3403b494</id>
<content type='text'>
This prevents a segfault when setting a value in the config of a
repository that doesn't have a config file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This prevents a segfault when setting a value in the config of a
repository that doesn't have a config file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clear repo config cache when cfgs are set</title>
<updated>2013-04-23T19:57:30+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-04-22T23:24:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6be368bf16c86380ea84d7e39b65e0ebd9606174'/>
<id>6be368bf16c86380ea84d7e39b65e0ebd9606174</id>
<content type='text'>
This is a conservative change, but it seemed like the only safe
thing to do -- i.e. clear the cvar cache when a config gets set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a conservative change, but it seemed like the only safe
thing to do -- i.e. clear the cvar cache when a config gets set.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add configs to repo config cache</title>
<updated>2013-04-23T19:57:30+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-04-22T21:24:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ab01cbd4ddd756c7beda3f483791cb5d4e211872'/>
<id>ab01cbd4ddd756c7beda3f483791cb5d4e211872</id>
<content type='text'>
This adds a bunch of additional config values to the repository
config value cache and makes it easier to add a simple boolean
config without creating enum values for each possible setting.

Also, this fixes a bug in git_config_refresh where the config
cache was not being cleared which could lead to potential
incorrect values.

The work to start using the new cached configs will come in the
next couple of commits...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a bunch of additional config values to the repository
config value cache and makes it easier to add a simple boolean
config without creating enum values for each possible setting.

Also, this fixes a bug in git_config_refresh where the config
cache was not being cleared which could lead to potential
incorrect values.

The work to start using the new cached configs will come in the
next couple of commits...
</pre>
</div>
</content>
</entry>
</feed>
