<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/pack-bitmap-write.c, branch v2.48.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.48.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.48.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-12-06T11:20:02Z</updated>
<entry>
<title>global: mark code units that generate warnings with `-Wsign-compare`</title>
<updated>2024-12-06T11:20:02Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-12-06T10:27:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41f43b8243f42b9df2e98be8460646d4c0100ad3'/>
<id>urn:sha1:41f43b8243f42b9df2e98be8460646d4c0100ad3</id>
<content type='text'>
Mark code units that generate warnings with `-Wsign-compare`. This
allows for a structured approach to get rid of all such warnings over
time in a way that can be easily measured.

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>pack-bitmap-write: fix leaking OID array</title>
<updated>2024-09-30T18:23:07Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-09-30T09:13:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f97266ee15d2a30dbc12c9a7f282a9f94b32476'/>
<id>urn:sha1:7f97266ee15d2a30dbc12c9a7f282a9f94b32476</id>
<content type='text'>
Fix a leaking OID array in `write_pseudo_merges()`.

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>pseudo-merge: fix various memory leaks</title>
<updated>2024-09-30T18:23:06Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-09-30T09:13:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=55e563a90cabacd144b529b8bab7c4bb1cecbc49'/>
<id>urn:sha1:55e563a90cabacd144b529b8bab7c4bb1cecbc49</id>
<content type='text'>
Fix various memory leaks hit by the pseudo-merge machinery. These leaks
are exposed by t5333, but plugging them does not yet make the whole test
suite pass.

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>Merge branch 'jk/drop-unused-parameters'</title>
<updated>2024-08-26T18:32:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-08-26T18:32:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ff26d228600848ecf3d44b3796beee310ebcccf'/>
<id>urn:sha1:2ff26d228600848ecf3d44b3796beee310ebcccf</id>
<content type='text'>
Drop unused parameters from functions.

* jk/drop-unused-parameters:
  diff-lib: drop unused index argument from get_stat_data()
  ref-filter: drop unused parameters from email_atom_option_parser()
  pack-bitmap: drop unused parameters from select_pseudo_merges()
  pack-bitmap: load writer config from repository parameter
  refs: drop some unused parameters from create_symref_lock()
</content>
</entry>
<entry>
<title>pack-bitmap: drop unused parameters from select_pseudo_merges()</title>
<updated>2024-08-17T16:44:41Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2024-08-17T07:29:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47564945046f8cda634ee72c5b3838c1b0aa4582'/>
<id>urn:sha1:47564945046f8cda634ee72c5b3838c1b0aa4582</id>
<content type='text'>
We take the array of indexed_commits (and its length), but there's no
need. The selection is based on ref reachability, not the linearized set
of commits we're packing.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmap: load writer config from repository parameter</title>
<updated>2024-08-17T16:44:40Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2024-08-17T07:26:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ecc6fa9ae964daf333f5e64cdff6f5232139f440'/>
<id>urn:sha1:ecc6fa9ae964daf333f5e64cdff6f5232139f440</id>
<content type='text'>
In bitmap_writer_init(), we take a repository parameter but ever look at
it. Most of the initialization here is independent of the repository,
but we do load some config. So let's pass the repo we get down to
load_pseudo_merges_from_config(), which in turn can use repo_config(),
rather than depending on the_repository via git_config().

The outcome is the same, since all callers pass in the_repository
anyway. But it takes us a step closer to getting rid of the global, and
as a bonus it silences an unused parameter warning.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmap-write.c: select pseudo-merges even for small bitmaps</title>
<updated>2024-08-15T18:25:02Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2024-08-15T17:31:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=187504f9b2b2af89c77247100b246a704c68c884'/>
<id>urn:sha1:187504f9b2b2af89c77247100b246a704c68c884</id>
<content type='text'>
Ordinarily, the pack-bitmap machinery will select some subset of
reachable commits to receive bitmaps. But when there are fewer than 100
commits indexed in the first place, they will all receive bitmaps as a
special case.

When this happens, pseudo-merges are not generated, making it impossible
to test pseudo-merge corner cases with fewer than 100 commits.

Select pseudo-merges even for bitmaps with fewer than 100 commits to
make such testing easier. In practice, this should not make a difference
to non-testing bitmaps, as they are unlikely to be used when a
repository has so few commits to begin with.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmap: drop redundant args from `bitmap_writer_finish()`</title>
<updated>2024-08-15T18:23:15Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2024-08-15T17:31:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=11a08e8332762ad0a56c7a92701d85d0d04f94a7'/>
<id>urn:sha1:11a08e8332762ad0a56c7a92701d85d0d04f94a7</id>
<content type='text'>
In a similar fashion as the previous commit, drop a redundant argument
from the `bitmap_writer_finish()` function.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmap: drop redundant args from `bitmap_writer_build()`</title>
<updated>2024-08-15T18:22:27Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2024-08-15T17:31:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f00dda48490c1d5d515cc97b5b3197c0ed1c7ed9'/>
<id>urn:sha1:f00dda48490c1d5d515cc97b5b3197c0ed1c7ed9</id>
<content type='text'>
In a similar fashion as the previous commit, drop a redundant argument
from the `bitmap_writer_build()` function.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmap: drop redundant args from `bitmap_writer_build_type_index()`</title>
<updated>2024-08-15T18:20:24Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2024-08-15T17:31:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=125ee4ae80e3661c3208fc1c8db0c619e5f625d2'/>
<id>urn:sha1:125ee4ae80e3661c3208fc1c8db0c619e5f625d2</id>
<content type='text'>
The previous commit ensures that the bitmap_writer's "to_pack" field is
initialized early on, so the "to_pack" and "index_nr" arguments to
`bitmap_writer_build_type_index()` are redundant.

Drop them and adjust the callers accordingly.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
