<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/libgit2/refs/revparse.c, branch main</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>Fix parsing rev with reflog of HEAD (e.g., HEAD@{3})</title>
<updated>2023-02-14T11:52:28+00:00</updated>
<author>
<name>Sven Strickroth</name>
<email>email@cs-ware.de</email>
</author>
<published>2022-08-19T19:16:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=0628e25d04bed2734091a8354aae7186f490037c'/>
<id>0628e25d04bed2734091a8354aae7186f490037c</id>
<content type='text'>
Fixes issue #6156.

Signed-off-by: Sven Strickroth &lt;email@cs-ware.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes issue #6156.

Signed-off-by: Sven Strickroth &lt;email@cs-ware.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>oid: `GIT_OID_*SZ` is now `GIT_OID_SHA1_*SIZE`</title>
<updated>2022-06-15T02:29:57+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2022-01-23T04:10:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=dbc4ac1c76827e954e0aa27afe8bb7e0b8993a93'/>
<id>dbc4ac1c76827e954e0aa27afe8bb7e0b8993a93</id>
<content type='text'>
In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ`
need to indicate that they're the size of _SHA1_ OIDs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In preparation for SHA256 support, `GIT_OID_RAWSZ` and `GIT_OID_HEXSZ`
need to indicate that they're the size of _SHA1_ OIDs.
</pre>
</div>
</content>
</entry>
<entry>
<title>revparse: Remove error-prone, redundant test</title>
<updated>2022-05-09T16:09:08+00:00</updated>
<author>
<name>Carl Dong</name>
<email>accounts@carldong.me</email>
</author>
<published>2022-05-09T16:09:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=7f53d7b600a838c19276e835fd0188c361a63801'/>
<id>7f53d7b600a838c19276e835fd0188c361a63801</id>
<content type='text'>
Originally introduced in: 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4

This test case has recently been fixed in bdab22384cc61d315005a65456a9f9563bb27c8f, but that fix will only last for a year. Next year the same problem will crop up and the test will need to be re-edited.

This is not ideal as
- This test case becomes an unnecessary burden for developers
- Downstream distros or even just users who want to build older versions of libgit2 are guaranteed to have this test fail

Furthermore, this test case is entirely unnecessary, as the functionality that was originally (see 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4) intended to be tested is well-covered by subsequent tests which specify a date instead of a "x ago" specification.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally introduced in: 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4

This test case has recently been fixed in bdab22384cc61d315005a65456a9f9563bb27c8f, but that fix will only last for a year. Next year the same problem will crop up and the test will need to be re-edited.

This is not ideal as
- This test case becomes an unnecessary burden for developers
- Downstream distros or even just users who want to build older versions of libgit2 are guaranteed to have this test fail

Furthermore, this test case is entirely unnecessary, as the functionality that was originally (see 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4) intended to be tested is well-covered by subsequent tests which specify a date instead of a "x ago" specification.</pre>
</div>
</content>
</entry>
<entry>
<title>revparse: adjust reflog test as we move away from the dates</title>
<updated>2022-05-03T07:28:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2022-05-03T07:28:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=bdab22384cc61d315005a65456a9f9563bb27c8f'/>
<id>bdab22384cc61d315005a65456a9f9563bb27c8f</id>
<content type='text'>
The dates we use in `refs::revparse::date` has just passed the ten years, so
now everything is beyond ten years, leading to an unexpected commit being
returned.

Adjust it to 11 years so it all looks fine again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dates we use in `refs::revparse::date` has just passed the ten years, so
now everything is beyond ten years, leading to an unexpected commit being
returned.

Adjust it to 11 years so it all looks fine again.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: `tests` is now `tests/libgit2`</title>
<updated>2022-02-23T03:07:45+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2021-11-17T04:29:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=3344fddc97bbdea9c1b6ebb6f7fb6dbd70b41dfb'/>
<id>3344fddc97bbdea9c1b6ebb6f7fb6dbd70b41dfb</id>
<content type='text'>
Like we want to separate libgit2 and utility source code, we want to
separate libgit2 and utility tests.  Start by moving all the tests into
libgit2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Like we want to separate libgit2 and utility source code, we want to
separate libgit2 and utility tests.  Start by moving all the tests into
libgit2.
</pre>
</div>
</content>
</entry>
</feed>
