<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/reftable, branch v2.44.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.44.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.44.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-02-12T21:16:10Z</updated>
<entry>
<title>Merge branch 'ps/reftable-styles'</title>
<updated>2024-02-12T21:16:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-12T21:16:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f424d7c33df373fb8eb4c9dc63ab6dc24de24aa5'/>
<id>urn:sha1:f424d7c33df373fb8eb4c9dc63ab6dc24de24aa5</id>
<content type='text'>
Code clean-up in various reftable code paths.

* ps/reftable-styles:
  reftable/record: improve semantics when initializing records
  reftable/merged: refactor initialization of iterators
  reftable/merged: refactor seeking of records
  reftable/stack: use `size_t` to track stack length
  reftable/stack: use `size_t` to track stack slices during compaction
  reftable/stack: index segments with `size_t`
  reftable/stack: fix parameter validation when compacting range
  reftable: introduce macros to allocate arrays
  reftable: introduce macros to grow arrays
</content>
</entry>
<entry>
<title>Merge branch 'ps/reftable-multi-level-indices-fix'</title>
<updated>2024-02-12T21:16:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-12T21:16:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cf4a3bd8f1dc85b20766efe1381511fb4cb15a4f'/>
<id>urn:sha1:cf4a3bd8f1dc85b20766efe1381511fb4cb15a4f</id>
<content type='text'>
Write multi-level indices for reftable has been corrected.

* ps/reftable-multi-level-indices-fix:
  reftable: document reading and writing indices
  reftable/writer: fix writing multi-level indices
  reftable/writer: simplify writing index records
  reftable/writer: use correct type to iterate through index entries
  reftable/reader: be more careful about errors in indexed seeks
</content>
</entry>
<entry>
<title>Merge branch 'jc/comment-style-fixes'</title>
<updated>2024-02-06T22:31:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-06T22:31:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=184c3b4c735f1c1f0f811fddcf3c2676e7ad613f'/>
<id>urn:sha1:184c3b4c735f1c1f0f811fddcf3c2676e7ad613f</id>
<content type='text'>
Rewrite //-comments to /* comments */ in files whose comments
prevalently use the latter.

* jc/comment-style-fixes:
  reftable/pq_test: comment style fix
  merge-ort.c: comment style fix
  builtin/worktree: comment style fixes
</content>
</entry>
<entry>
<title>Merge branch 'ps/reftable-compacted-tables-permission-fix'</title>
<updated>2024-02-06T22:31:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-06T22:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f4e178a4f7ab6dd8758f0b581c5bfe7f71cf415'/>
<id>urn:sha1:0f4e178a4f7ab6dd8758f0b581c5bfe7f71cf415</id>
<content type='text'>
Reftable bugfix.

* ps/reftable-compacted-tables-permission-fix:
  reftable/stack: adjust permissions of compacted tables
</content>
</entry>
<entry>
<title>Merge branch 'jc/reftable-core-fsync'</title>
<updated>2024-02-06T22:31:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-06T22:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b6fdf9aafa936481163480984d1a620092765a38'/>
<id>urn:sha1:b6fdf9aafa936481163480984d1a620092765a38</id>
<content type='text'>
The write codepath for the reftable data learned to honor
core.fsync configuration.

* jc/reftable-core-fsync:
  reftable/stack: fsync "tables.list" during compaction
  reftable: honor core.fsync
</content>
</entry>
<entry>
<title>reftable/record: improve semantics when initializing records</title>
<updated>2024-02-06T20:10:09Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-02-06T06:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ddef475d008b8a705a53e6bb1405bb773ffdc50'/>
<id>urn:sha1:3ddef475d008b8a705a53e6bb1405bb773ffdc50</id>
<content type='text'>
According to our usual coding style, the `reftable_new_record()`
function would indicate that it is allocating a new record. This is not
the case though as the function merely initializes records without
allocating any memory.

Replace `reftable_new_record()` with a new `reftable_record_init()`
function that takes a record pointer as input and initializes it
accordingly.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable/merged: refactor initialization of iterators</title>
<updated>2024-02-06T20:10:09Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-02-06T06:35:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62d3c8e8c8a3dc3113cead8d9dd36f7e59054670'/>
<id>urn:sha1:62d3c8e8c8a3dc3113cead8d9dd36f7e59054670</id>
<content type='text'>
Refactor the initialization of the merged iterator to fit our code style
better. This refactoring prepares the code for a refactoring of how
records are being initialized.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable/merged: refactor seeking of records</title>
<updated>2024-02-06T20:10:08Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-02-06T06:35:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59f302ca5abf3e8ec4f14f098b26adf786017fad'/>
<id>urn:sha1:59f302ca5abf3e8ec4f14f098b26adf786017fad</id>
<content type='text'>
The code to seek reftable records in the merged table code is quite hard
to read and does not conform to our coding style in multiple ways:

  - We have multiple exit paths where we release resources even though
    that is not really necessary.

  - We use a scoped error variable `e` which is hard to reason about.
    This variable is not required at all.

  - We allocate memory in the variable declarations, which is easy to
    miss.

Refactor the function so that it becomes more maintainable in the
future.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable/stack: use `size_t` to track stack length</title>
<updated>2024-02-06T20:10:08Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-02-06T06:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81879123c32d06406de5bfaf68baf6029660ca2a'/>
<id>urn:sha1:81879123c32d06406de5bfaf68baf6029660ca2a</id>
<content type='text'>
While the stack length is already stored as `size_t`, we frequently use
`int`s to refer to those stacks throughout the reftable library. Convert
those cases to use `size_t` instead to make things consistent.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable/stack: use `size_t` to track stack slices during compaction</title>
<updated>2024-02-06T20:10:08Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-02-06T06:35:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47616c4399d958b8a9f40b1ad70071d2e3c56126'/>
<id>urn:sha1:47616c4399d958b8a9f40b1ad70071d2e3c56126</id>
<content type='text'>
We use `int`s to track reftable slices when compacting the reftable
stack, which is considered to be a code smell in the Git project.
Convert the code to use `size_t` instead.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
