<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/unit-tests/u-reftable-stack.c, branch v2.52.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.52.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.52.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-08-29T16:44:36Z</updated>
<entry>
<title>Merge branch 'ps/reftable-libgit2-cleanup'</title>
<updated>2025-08-29T16:44:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-29T16:44:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00c2c50ea67c78632051a97b6ef853c97a227731'/>
<id>urn:sha1:00c2c50ea67c78632051a97b6ef853c97a227731</id>
<content type='text'>
Code clean-ups.

* ps/reftable-libgit2-cleanup:
  refs/reftable: always reload stacks when creating lock
  reftable: don't second-guess errors from flock interface
  reftable/stack: handle outdated stacks when compacting
  reftable/stack: allow passing flags to `reftable_stack_add()`
  reftable/stack: fix compiler warning due to missing braces
  reftable/stack: reorder code to avoid forward declarations
  reftable/writer: drop Git-specific `QSORT()` macro
  reftable/writer: fix type used for number of records
</content>
</entry>
<entry>
<title>t/unit-tests: finalize migration of reftable-related tests</title>
<updated>2025-07-24T18:46:04Z</updated>
<author>
<name>Seyi Kuforiji</name>
<email>kuforiji98@gmail.com</email>
</author>
<published>2025-07-24T14:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9bbc981c6f27e00d050d4f70b0293f56e39b019a'/>
<id>urn:sha1:9bbc981c6f27e00d050d4f70b0293f56e39b019a</id>
<content type='text'>
The old `lib-reftable.{c,h}` implemented helper functions for our
homegrown unit-testing framework. As part of migrating reftable-related
tests to the Clar framework, Clar-specific versions of these functions
in `lib-reftable-clar.{c,h}` were introduced.

Now that all test files using these helpers have been converted to Clar,
we can safely remove the original `lib-reftable.{c,h}` and rename the
Clar- specific versions back to `lib-reftable.{c,h}`. This restores a
clean and consistent naming scheme for shared test utilities.

Finally, update our build system to reflect the changes made and remove
redundant code related to the reftable tests and our old homegrown
unit-testing setup. `test-lib.{c,h}` remains unchanged in our build
system as some files particularly `t/helper/test-example-tap.c` depends
on it in order to run, and removing that would be beyond the scope of
this patch.

Signed-off-by: Seyi Kuforiji &lt;kuforiji98@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/unit-tests: convert reftable stack test to use clar</title>
<updated>2025-07-24T18:46:04Z</updated>
<author>
<name>Seyi Kuforiji</name>
<email>kuforiji98@gmail.com</email>
</author>
<published>2025-07-24T14:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1cfd187fc12b1c82e4e0d0c86c580ee1e2d7e0ba'/>
<id>urn:sha1:1cfd187fc12b1c82e4e0d0c86c580ee1e2d7e0ba</id>
<content type='text'>
Adapt reftable stack test file to use clar by using clar assertions
where necessary.

This marks the end of all unit tests migrated away from the
`unit-tests/t-*.c` pattern, there are no longer any files matching that
glob. Remove the sanity check for `t-*.c` files to prevent Meson
configuration errors during CI and local builds.

Signed-off-by: Seyi Kuforiji &lt;kuforiji98@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
