<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/index, branch ethomson/diff_enum</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>Proof-of-concept for a more aggressive GIT_UNUSED()</title>
<updated>2021-08-09T02:08:59+00:00</updated>
<author>
<name>lhchavez</name>
<email>lhchavez@lhchavez.com</email>
</author>
<published>2021-02-24T03:33:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=231ca4fad36ce7b3dd5d79b599be46ab6001fc18'/>
<id>231ca4fad36ce7b3dd5d79b599be46ab6001fc18</id>
<content type='text'>
This adds a `-Wunused-result`-proof `GIT_UNUSED()`, just to demonstrate
that it works. With this, sortedcache.h is now completely
`GIT_WARN_UNUSED_RESULT`-annotated!
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a `-Wunused-result`-proof `GIT_UNUSED()`, just to demonstrate
that it works. With this, sortedcache.h is now completely
`GIT_WARN_UNUSED_RESULT`-annotated!
</pre>
</div>
</content>
</entry>
<entry>
<title>clar: include the function name</title>
<updated>2020-06-05T07:49:07+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2020-06-05T07:42:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=cad7a1bad40c302fef02306708f6ce6279680cb4'/>
<id>cad7a1bad40c302fef02306708f6ce6279680cb4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: index::version: write v4 index: re-open repo to read written v4 index</title>
<updated>2020-05-26T19:51:15+00:00</updated>
<author>
<name>Patrick Wang</name>
<email>mail6543210@yahoo.com.tw</email>
</author>
<published>2020-05-26T12:36:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1a8990082aeeb1fbf6028d7c2b480f3086c87307'/>
<id>1a8990082aeeb1fbf6028d7c2b480f3086c87307</id>
<content type='text'>
The `git_index_free()` merely decrement the reference counter from 2 to
1, and does not "free" the index.
Thus, the following `git_repository_index()` merely increase the counter
to 2, instead of read index from disk.
The written index is not read and parsed, which makes this test case
effectively becomes a no-op.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `git_index_free()` merely decrement the reference counter from 2 to
1, and does not "free" the index.
Thus, the following `git_repository_index()` merely increase the counter
to 2, instead of read index from disk.
The written index is not read and parsed, which makes this test case
effectively becomes a no-op.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add missing error checks</title>
<updated>2020-02-07T10:53:51+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2020-02-07T10:53:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=2e6cbff86e74b6eaa9b90dc8adc205b9d940a481'/>
<id>2e6cbff86e74b6eaa9b90dc8adc205b9d940a481</id>
<content type='text'>
We should always verify error codes returned by function calls in our
test suite to not accidentally miss any weird results. Coverity reported
missing checks in several locations, which this commit fixes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should always verify error codes returned by function calls in our
test suite to not accidentally miss any weird results. Coverity reported
missing checks in several locations, which this commit fixes.
</pre>
</div>
</content>
</entry>
<entry>
<title>index: ensure that we respect core.protectNTFS=false</title>
<updated>2019-12-10T08:11:45+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T08:50:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=85d4ff77e2b539c525f36d0860f3faa8e68308b7'/>
<id>85d4ff77e2b539c525f36d0860f3faa8e68308b7</id>
<content type='text'>
Users may want to turn off core.protectNTFS, perhaps to import (and then
repair) a broken tree.  Ensure that core.protectNTFS=false is honored.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Users may want to turn off core.protectNTFS, perhaps to import (and then
repair) a broken tree.  Ensure that core.protectNTFS=false is honored.
</pre>
</div>
</content>
</entry>
<entry>
<title>path: protect NTFS everywhere</title>
<updated>2019-12-10T08:11:45+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T08:24:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=e4034dfa568b28651305364cd3367ac47cdc79d8'/>
<id>e4034dfa568b28651305364cd3367ac47cdc79d8</id>
<content type='text'>
Enable core.protectNTFS by default everywhere and in every codepath, not
just on checkout.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable core.protectNTFS by default everywhere and in every codepath, not
just on checkout.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: ensure we can't add a protected path</title>
<updated>2019-12-10T08:10:04+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T08:17:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=d9c0c9cf6827ba51458c54082f96f0bb1259425e'/>
<id>d9c0c9cf6827ba51458c54082f96f0bb1259425e</id>
<content type='text'>
Test that when we enable core.protectNTFS that we cannot add
platform-specific invalid paths to the index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test that when we enable core.protectNTFS that we cannot add
platform-specific invalid paths to the index.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: improve badname verification test</title>
<updated>2019-12-10T08:10:02+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T08:01:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=72df1cd84885294aa6961d3710e658969313f902'/>
<id>72df1cd84885294aa6961d3710e658969313f902</id>
<content type='text'>
The name of the `add_invalid_filename` function suggests that we
_want_ to add an invalid filename.  Rename the function to show that
we expect to _fail_ to add the invalid filename.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The name of the `add_invalid_filename` function suggests that we
_want_ to add an invalid filename.  Rename the function to show that
we expect to _fail_ to add the invalid filename.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: ensure index adds validate new protection rules</title>
<updated>2019-12-10T08:09:10+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T07:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=336991dbf274575d2a09c1b98e34e8bfc231746e'/>
<id>336991dbf274575d2a09c1b98e34e8bfc231746e</id>
<content type='text'>
Ensure that the new protection around .git::$INDEX_ALLOCATION rules are
enabled for adding to the index when core.protectNTFS is set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure that the new protection around .git::$INDEX_ALLOCATION rules are
enabled for adding to the index when core.protectNTFS is set.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: improve badname verification test</title>
<updated>2019-12-10T08:08:32+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-12-03T07:49:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=a3cbd204aa926af21a250df3a9fffb30085b8dc3'/>
<id>a3cbd204aa926af21a250df3a9fffb30085b8dc3</id>
<content type='text'>
The name of the `write_invalid_filename` function suggests that we
_want_ to write an invalid filename.  Rename the function to show that
we expect to _fail_ to write the invalid filename.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The name of the `write_invalid_filename` function suggests that we
_want_ to write an invalid filename.  Rename the function to show that
we expect to _fail_ to write the invalid filename.
</pre>
</div>
</content>
</entry>
</feed>
