git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 13/22] pack-bitmap: write multi-pack bitmaps

From
Taylor Blau <me@ttaylorr.com>
Date
Apr 9, 2021, 18:11 UTC
Message-ID
<fd320c5ed48c7431b64b898f49101b0f53655a95.1617991824.git.me@ttaylorr.com>
In-Reply-To
<cover.1617991824.git.me@ttaylorr.com>

Write multi-pack bitmaps in the format described by Documentation/technical/bitmap-format.txt, inferring their presence with the absence of '--bitmap'.

To write a multi-pack bitmap, this patch attempts to reuse as much of the existing machinery from pack-objects as possible. Specifically, the MIDX code prepares a packing_data struct that pretends as if a single packfile has been generated containing all of the objects contained within the MIDX.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
---
 Documentation/git-multi-pack-index.txt |  12 +-
 builtin/multi-pack-index.c             |   2 +
 midx.c                                 | 195 ++++++++++++++++++++++++-
 midx.h                                 |   1 +
 4 files changed, 202 insertions(+), 8 deletions(-)
diff --git a/Documentation/git-multi-pack-index.txt b/Documentation/git-multi-pack-index.txt
index ffd601bc17..ada14deb2c 100644
--- a/Documentation/git-multi-pack-index.txt
+++ b/Documentation/git-multi-pack-index.txt
@@ -10,7 +10,7 @@ SYNOPSIS
 --------
 [verse]
 'git multi-pack-index' [--object-dir=<dir>] [--[no-]progress]
-	[--preferred-pack=<pack>] <subcommand>
+	[--preferred-pack=<pack>] [--[no-]bitmap] <subcommand>
 
 DESCRIPTION
 -----------
@@ -40,6 +40,9 @@ write::
 		multiple packs contain the same object. If not given,
 		ties are broken in favor of the pack with the lowest
 		mtime.
+
+	--[no-]bitmap::
+		Control whether or not a multi-pack bitmap is written.
 --
 
 verify::
@@ -81,6 +84,13 @@ EXAMPLES
 $ git multi-pack-index write
 -----------------------------------------------
 
+* Write a MIDX file for the packfiles in the current .git folder with a
+corresponding bitmap.
++
+-------------------------------------------------------------
+$ git multi-pack-index write --preferred-pack <pack> --bitmap
+-------------------------------------------------------------
+
 * Write a MIDX file for the packfiles in an alternate object store.
 +
 -----------------------------------------------
diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
index 5d3ea445fd..bf6fa982e3 100644
--- a/builtin/multi-pack-index.c
+++ b/builtin/multi-pack-index.c
@@ -68,6 +68,8 @@ static int cmd_multi_pack_index_write(int argc, const char **argv)
 		OPT_STRING(0, "preferred-pack", &opts.preferred_pack,
 			   N_("preferred-pack"),
 			   N_("pack for reuse when computing a multi-pack bitmap")),
+		OPT_BIT(0, "bitmap", &opts.flags, N_("write multi-pack bitmap"),
+			MIDX_WRITE_BITMAP | MIDX_WRITE_REV_INDEX),
 		OPT_END(),
 	};
 
diff --git a/midx.c b/midx.c
index 567cdf0fcf..32d7d184c0 100644
--- a/midx.c
+++ b/midx.c
@@ -13,6 +13,10 @@
 #include "repository.h"
 #include "chunk-format.h"
 #include "pack.h"
+#include "pack-bitmap.h"
+#include "refs.h"
+#include "revision.h"
+#include "list-objects.h"
 
 #define MIDX_SIGNATURE 0x4d494458 /* "MIDX" */
 #define MIDX_VERSION 1
@@ -885,6 +889,145 @@ static void write_midx_reverse_index(char *midx_name, unsigned char *midx_hash,
 static void clear_midx_files_ext(struct repository *r, const char *ext,
 				 unsigned char *keep_hash);
 
+static void prepare_midx_packing_data(struct packing_data *pdata,
+				      struct write_midx_context *ctx)
+{
+	uint32_t i;
+
+	memset(pdata, 0, sizeof(struct packing_data));
+	prepare_packing_data(the_repository, pdata);
+
+	for (i = 0; i < ctx->entries_nr; i++) {
+		struct pack_midx_entry *from = &ctx->entries[ctx->pack_order[i]];
+		struct object_entry *to = packlist_alloc(pdata, &from->oid);
+
+		oe_set_in_pack(pdata, to,
+			       ctx->info[ctx->pack_perm[from->pack_int_id]].p);
+	}
+}
+
+static int add_ref_to_pending(const char *refname,
+			      const struct object_id *oid,
+			      int flag, void *cb_data)
+{
+	struct rev_info *revs = (struct rev_info*)cb_data;
+	struct object *object;
+
+	if ((flag & REF_ISSYMREF) && (flag & REF_ISBROKEN)) {
+		warning("symbolic ref is dangling: %s", refname);
+		return 0;
+	}
+
+	object = parse_object_or_die(oid, refname);
+	if (object->type != OBJ_COMMIT)
+		return 0;
+
+	add_pending_object(revs, object, "");
+	if (bitmap_is_preferred_refname(revs->repo, refname))
+		object->flags |= NEEDS_BITMAP;
+	return 0;
+}
+
+struct bitmap_commit_cb {
+	struct commit **commits;
+	size_t commits_nr, commits_alloc;
+
+	struct write_midx_context *ctx;
+};
+
+static const struct object_id *bitmap_oid_access(size_t index,
+						 const void *_entries)
+{
+	const struct pack_midx_entry *entries = _entries;
+	return &entries[index].oid;
+}
+
+static void bitmap_show_commit(struct commit *commit, void *_data)
+{
+	struct bitmap_commit_cb *data = _data;
+	if (oid_pos(&commit->object.oid, data->ctx->entries,
+		    data->ctx->entries_nr,
+		    bitmap_oid_access) > -1) {
+		ALLOC_GROW(data->commits, data->commits_nr + 1,
+			   data->commits_alloc);
+		data->commits[data->commits_nr++] = commit;
+	}
+}
+
+static struct commit **find_commits_for_midx_bitmap(uint32_t *indexed_commits_nr_p,
+						    struct write_midx_context *ctx)
+{
+	struct rev_info revs;
+	struct bitmap_commit_cb cb;
+
+	memset(&cb, 0, sizeof(struct bitmap_commit_cb));
+	cb.ctx = ctx;
+
+	repo_init_revisions(the_repository, &revs, NULL);
+	for_each_ref(add_ref_to_pending, &revs);
+
+	fetch_if_missing = 0;
+	revs.exclude_promisor_objects = 1;
+
+	if (prepare_revision_walk(&revs))
+		die(_("revision walk setup failed"));
+
+	traverse_commit_list(&revs, bitmap_show_commit, NULL, &cb);
+	if (indexed_commits_nr_p)
+		*indexed_commits_nr_p = cb.commits_nr;
+
+	return cb.commits;
+}
+
+static int write_midx_bitmap(char *midx_name, unsigned char *midx_hash,
+			     struct write_midx_context *ctx,
+			     unsigned flags)
+{
+	struct packing_data pdata;
+	struct pack_idx_entry **index;
+	struct commit **commits = NULL;
+	uint32_t i, commits_nr;
+	char *bitmap_name = xstrfmt("%s-%s.bitmap", midx_name, hash_to_hex(midx_hash));
+	int ret;
+
+	prepare_midx_packing_data(&pdata, ctx);
+
+	commits = find_commits_for_midx_bitmap(&commits_nr, ctx);
+
+	/*
+	 * Build the MIDX-order index based on pdata.objects (which is already
+	 * in MIDX order; c.f., 'midx_pack_order_cmp()' for the definition of
+	 * this order).
+	 */
+	ALLOC_ARRAY(index, pdata.nr_objects);
+	for (i = 0; i < pdata.nr_objects; i++)
+		index[i] = (struct pack_idx_entry *)&pdata.objects[i];
+
+	bitmap_writer_show_progress(flags & MIDX_PROGRESS);
+	bitmap_writer_build_type_index(&pdata, index, pdata.nr_objects);
+
+	/*
+	 * bitmap_writer_select_commits expects objects in lex order, but
+	 * pack_order gives us exactly that. use it directly instead of
+	 * re-sorting the array
+	 */
+	for (i = 0; i < pdata.nr_objects; i++)
+		index[ctx->pack_order[i]] = (struct pack_idx_entry *)&pdata.objects[i];
+
+	bitmap_writer_select_commits(commits, commits_nr, -1);
+	ret = bitmap_writer_build(&pdata);
+	if (!ret)
+		goto cleanup;
+
+	bitmap_writer_set_checksum(midx_hash);
+	bitmap_writer_finish(index, pdata.nr_objects, bitmap_name, 0);
+
+cleanup:
+	free(index);
+	free(bitmap_name);
+	return ret;
+}
+
 static int write_midx_internal(const char *object_dir, struct multi_pack_index *m,
 			       struct string_list *packs_to_drop,
 			       const char *preferred_pack_name,
@@ -930,9 +1073,16 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 		for (i = 0; i < ctx.m->num_packs; i++) {
 			ALLOC_GROW(ctx.info, ctx.nr + 1, ctx.alloc);
 
+			if (prepare_midx_pack(the_repository, ctx.m, i)) {
+				error(_("could not load pack %s"),
+				      ctx.m->pack_names[i]);
+				result = 1;
+				goto cleanup;
+			}
+
 			ctx.info[ctx.nr].orig_pack_int_id = i;
 			ctx.info[ctx.nr].pack_name = xstrdup(ctx.m->pack_names[i]);
-			ctx.info[ctx.nr].p = NULL;
+			ctx.info[ctx.nr].p = ctx.m->packs[i];
 			ctx.info[ctx.nr].expired = 0;
 			ctx.nr++;
 		}
@@ -947,8 +1097,26 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 	for_each_file_in_pack_dir(object_dir, add_pack_to_midx, &ctx);
 	stop_progress(&ctx.progress);
 
-	if (ctx.m && ctx.nr == ctx.m->num_packs && !packs_to_drop)
-		goto cleanup;
+	if (ctx.m && ctx.nr == ctx.m->num_packs && !packs_to_drop) {
+		struct bitmap_index *bitmap_git;
+		int bitmap_exists;
+		int want_bitmap = flags & MIDX_WRITE_BITMAP;
+
+		bitmap_git = prepare_bitmap_git(the_repository);
+		bitmap_exists = bitmap_git && bitmap_is_midx(bitmap_git);
+		free_bitmap_index(bitmap_git);
+
+		if (bitmap_exists || !want_bitmap) {
+			/*
+			 * The correct MIDX already exists, and so does a
+			 * corresponding bitmap (or one wasn't requested).
+			 */
+			if (!want_bitmap)
+				clear_midx_files_ext(the_repository, ".bitmap",
+						     NULL);
+			goto cleanup;
+		}
+	}
 
 	ctx.preferred_pack_idx = -1;
 	if (preferred_pack_name) {
@@ -1048,9 +1216,6 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 	hold_lock_file_for_update(&lk, midx_name, LOCK_DIE_ON_ERROR);
 	f = hashfd(get_lock_file_fd(&lk), get_lock_file_path(&lk));
 
-	if (ctx.m)
-		close_midx(ctx.m);
-
 	if (ctx.nr - dropped_packs == 0) {
 		error(_("no pack files to index."));
 		result = 1;
@@ -1081,14 +1246,17 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 	finalize_hashfile(f, midx_hash, CSUM_FSYNC | CSUM_HASH_IN_STREAM);
 	free_chunkfile(cf);
 
-	if (flags & MIDX_WRITE_REV_INDEX)
+	if (flags & (MIDX_WRITE_REV_INDEX | MIDX_WRITE_BITMAP))
 		ctx.pack_order = midx_pack_order(&ctx);
 
 	if (flags & MIDX_WRITE_REV_INDEX)
 		write_midx_reverse_index(midx_name, midx_hash, &ctx);
+	if (flags & MIDX_WRITE_BITMAP)
+		write_midx_bitmap(midx_name, midx_hash, &ctx, flags);
 
 	commit_lock_file(&lk);
 
+	clear_midx_files_ext(the_repository, ".bitmap", midx_hash);
 	clear_midx_files_ext(the_repository, ".rev", midx_hash);
 
 cleanup:
@@ -1096,6 +1264,15 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 		if (ctx.info[i].p) {
 			close_pack(ctx.info[i].p);
 			free(ctx.info[i].p);
+			if (ctx.m) {
+				/*
+				 * Destroy a stale reference to the pack in
+				 * 'ctx.m'.
+				 */
+				uint32_t orig = ctx.info[i].orig_pack_int_id;
+				if (orig < ctx.m->num_packs)
+					ctx.m->packs[orig] = NULL;
+			}
 		}
 		free(ctx.info[i].pack_name);
 	}
@@ -1105,6 +1282,9 @@ static int write_midx_internal(const char *object_dir, struct multi_pack_index *
 	free(ctx.pack_perm);
 	free(ctx.pack_order);
 	free(midx_name);
+	if (ctx.m)
+		close_midx(ctx.m);
+
 	return result;
 }
 
@@ -1166,6 +1346,7 @@ void clear_midx_file(struct repository *r)
 	if (remove_path(midx))
 		die(_("failed to clear multi-pack-index at %s"), midx);
 
+	clear_midx_files_ext(r, ".bitmap", NULL);
 	clear_midx_files_ext(r, ".rev", NULL);
 
 	free(midx);
diff --git a/midx.h b/midx.h
index 1172df1a71..350f4d0a7b 100644
--- a/midx.h
+++ b/midx.h
@@ -41,6 +41,7 @@ struct multi_pack_index {
 
 #define MIDX_PROGRESS     (1 << 0)
 #define MIDX_WRITE_REV_INDEX (1 << 1)
+#define MIDX_WRITE_BITMAP (1 << 2)
 
 const unsigned char *get_midx_checksum(struct multi_pack_index *m);
 char *get_midx_filename(const char *object_dir);
-- 
2.31.1.163.ga65ce7f831
Previous: Taylor BlauNext: Jonathan Tan
Message 17 of 273 in “multi-pack reachability bitmaps”
  1. 00/22 multi-pack reachability bitmapsTaylor Blau, Apr 9, 2021
  2. 01/22 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Apr 9, 2021
  3. 02/22 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Apr 9, 2021
  4. Jonathan TanApr 16, 2021
  5. 03/22 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Apr 9, 2021
  6. 04/22 Documentation: build 'technical/bitmap-format' by defaultTaylor Blau, Apr 9, 2021
  7. 06/22 midx: make a number of functions non-staticTaylor Blau, Apr 9, 2021
  8. 05/22 Documentation: describe MIDX-based bitmapsTaylor Blau, Apr 9, 2021
  9. 07/22 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Apr 9, 2021
  10. 08/22 midx: respect 'core.multiPackIndex' when writingTaylor Blau, Apr 9, 2021
  11. 09/22 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Apr 9, 2021
  12. 10/22 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Apr 9, 2021
  13. 11/22 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Apr 9, 2021
  14. 12/22 pack-bitmap: read multi-pack bitmapsTaylor Blau, Apr 9, 2021
  15. Jonathan TanApr 16, 2021
  16. Taylor BlauApr 16, 2021
  17. 13/22 pack-bitmap: write multi-pack bitmapsTaylor Blau, Apr 9, 2021
  18. Jonathan TanMay 4, 2021
  19. Taylor BlauMay 6, 2021
  20. Jonathan TanMay 6, 2021
  21. 14/22 t5310: move some tests to lib-bitmap.shTaylor Blau, Apr 9, 2021
  22. 16/22 t5326: test multi-pack bitmap behaviorTaylor Blau, Apr 9, 2021
  23. Jonathan TanMay 4, 2021
  24. 15/22 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Apr 9, 2021
  25. 17/22 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Apr 9, 2021
  26. 19/22 t7700: update to work with MIDX bitmap test knobTaylor Blau, Apr 9, 2021
  27. 18/22 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Apr 9, 2021
  28. 21/22 p5310: extract full and partial bitmap testsTaylor Blau, Apr 9, 2021
  29. 20/22 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Apr 9, 2021
  30. 22/22 p5326: perf tests for MIDX bitmapsTaylor Blau, Apr 9, 2021
  31. Jonathan TanMay 4, 2021
  32. Junio C HamanoMay 5, 2021
  33. 00/24 multi-pack reachability bitmapsTaylor Blau, Jun 21, 2021
  34. 01/24 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Jun 21, 2021
  35. Ævar Arnfjörð BjarmasonJun 24, 2021
  36. Taylor BlauJul 14, 2021
  37. Jeff KingJul 21, 2021
  38. Taylor BlauJul 21, 2021
  39. 02/24 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Jun 21, 2021
  40. Ævar Arnfjörð BjarmasonJun 24, 2021
  41. Taylor BlauJul 14, 2021
  42. Ævar Arnfjörð BjarmasonJul 14, 2021
  43. Jeff KingJul 21, 2021
  44. Jeff KingJul 21, 2021
  45. Taylor BlauJul 21, 2021
  46. Jeff KingJul 23, 2021
  47. Taylor BlauJul 26, 2021
  48. Jeff KingJul 27, 2021
  49. 03/24 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Jun 21, 2021
  50. Jeff KingJul 21, 2021
  51. 04/24 Documentation: build 'technical/bitmap-format' by defaultTaylor Blau, Jun 21, 2021
  52. Ævar Arnfjörð BjarmasonJun 24, 2021
  53. Taylor BlauJul 14, 2021
  54. Ævar Arnfjörð BjarmasonJul 14, 2021
  55. Jeff KingJul 21, 2021
  56. Jeff KingJul 21, 2021
  57. Jeff KingJul 21, 2021
  58. Jeff KingJul 21, 2021
  59. Taylor BlauJul 21, 2021
  60. Jeff KingJul 23, 2021
  61. Taylor BlauJul 26, 2021
  62. 05/24 Documentation: describe MIDX-based bitmapsTaylor Blau, Jun 21, 2021
  63. Jeff KingJul 21, 2021
  64. Taylor BlauJul 21, 2021
  65. Jeff KingJul 23, 2021
  66. 06/24 midx: make a number of functions non-staticTaylor Blau, Jun 21, 2021
  67. Ævar Arnfjörð BjarmasonJun 24, 2021
  68. Taylor BlauJul 14, 2021
  69. 07/24 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Jun 21, 2021
  70. Jeff KingJul 21, 2021
  71. 08/24 midx: respect 'core.multiPackIndex' when writingTaylor Blau, Jun 21, 2021
  72. Ævar Arnfjörð BjarmasonJun 24, 2021
  73. Jeff KingJul 21, 2021
  74. Taylor BlauJul 21, 2021
  75. Jeff KingJul 23, 2021
  76. Taylor BlauJul 26, 2021
  77. Taylor BlauJul 26, 2021
  78. Jeff KingJul 27, 2021
  79. Taylor BlauJul 27, 2021
  80. Jeff KingJul 27, 2021
  81. Taylor BlauJul 27, 2021
  82. Jeff KingJul 27, 2021
  83. Taylor BlauJul 27, 2021
  84. Jeff KingJul 28, 2021
  85. Taylor BlauJul 29, 2021
  86. Jeff KingAug 12, 2021
  87. Jeff KingJul 27, 2021
  88. 09/24 midx: infer preferred pack when not given oneTaylor Blau, Jun 21, 2021
  89. Jeff KingJul 21, 2021
  90. Taylor BlauJul 21, 2021
  91. Jeff KingJul 23, 2021
  92. Taylor BlauJul 26, 2021
  93. 10/24 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Jun 21, 2021
  94. Jeff KingJul 21, 2021
  95. 11/24 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Jun 21, 2021
  96. Taylor BlauJun 24, 2021
  97. Jeff KingJul 21, 2021
  98. Jeff KingJul 21, 2021
  99. 12/24 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Jun 21, 2021
  100. Jeff KingJul 21, 2021
  101. Taylor BlauJul 21, 2021
  102. 13/24 pack-bitmap: read multi-pack bitmapsTaylor Blau, Jun 21, 2021
  103. Jeff KingJul 21, 2021
  104. Taylor BlauJul 21, 2021
  105. Jeff KingJul 23, 2021
  106. Jeff KingJul 23, 2021
  107. Taylor BlauJul 26, 2021
  108. 14/24 pack-bitmap: write multi-pack bitmapsTaylor Blau, Jun 21, 2021
  109. Ævar Arnfjörð BjarmasonJun 24, 2021
  110. Taylor BlauJul 15, 2021
  111. Jeff KingJul 21, 2021
  112. Taylor BlauJul 26, 2021
  113. Taylor BlauJul 26, 2021
  114. Jeff KingJul 27, 2021
  115. Taylor BlauJul 27, 2021
  116. Jeff KingJul 28, 2021
  117. Taylor BlauJul 29, 2021
  118. Jeff KingAug 12, 2021
  119. 15/24 t5310: move some tests to lib-bitmap.shTaylor Blau, Jun 21, 2021
  120. 16/24 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Jun 21, 2021
  121. 18/24 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jun 21, 2021
  122. 17/24 t5326: test multi-pack bitmap behaviorTaylor Blau, Jun 21, 2021
  123. 19/24 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jun 21, 2021
  124. 20/24 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Jun 21, 2021
  125. 21/24 t7700: update to work with MIDX bitmap test knobTaylor Blau, Jun 21, 2021
  126. 22/24 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Jun 21, 2021
  127. Ævar Arnfjörð BjarmasonJun 25, 2021
  128. 23/24 p5310: extract full and partial bitmap testsTaylor Blau, Jun 21, 2021
  129. 24/24 p5326: perf tests for MIDX bitmapsTaylor Blau, Jun 21, 2021
  130. Ævar Arnfjörð BjarmasonJun 25, 2021
  131. Taylor BlauJul 15, 2021
  132. Jeff KingJul 21, 2021
  133. 00/25 multi-pack reachability bitmapsTaylor Blau, Jul 27, 2021
  134. 01/25 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Jul 27, 2021
  135. 03/25 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Jul 27, 2021
  136. 04/25 Documentation: describe MIDX-based bitmapsTaylor Blau, Jul 27, 2021
  137. 02/25 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Jul 27, 2021
  138. 06/25 midx: reject empty `--preferred-pack`'sTaylor Blau, Jul 27, 2021
  139. 09/25 midx: avoid opening multiple MIDXs when writingTaylor Blau, Jul 27, 2021
  140. Taylor BlauJul 29, 2021
  141. Jeff KingAug 12, 2021
  142. Jeff KingAug 12, 2021
  143. Taylor BlauAug 12, 2021
  144. 10/25 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Jul 27, 2021
  145. 11/25 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Jul 27, 2021
  146. 12/25 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Jul 27, 2021
  147. 08/25 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Jul 27, 2021
  148. 07/25 midx: infer preferred pack when not given oneTaylor Blau, Jul 27, 2021
  149. 14/25 pack-bitmap: read multi-pack bitmapsTaylor Blau, Jul 27, 2021
  150. 13/25 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Jul 27, 2021
  151. 17/25 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Jul 27, 2021
  152. Jeff KingAug 12, 2021
  153. Taylor BlauAug 12, 2021
  154. 16/25 t5310: move some tests to lib-bitmap.shTaylor Blau, Jul 27, 2021
  155. Jeff KingAug 12, 2021
  156. 18/25 t5326: test multi-pack bitmap behaviorTaylor Blau, Jul 27, 2021
  157. Jeff KingAug 12, 2021
  158. Jeff KingAug 12, 2021
  159. Taylor BlauAug 12, 2021
  160. Jeff KingAug 12, 2021
  161. 05/25 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Jul 27, 2021
  162. 15/25 pack-bitmap: write multi-pack bitmapsTaylor Blau, Jul 27, 2021
  163. 19/25 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jul 27, 2021
  164. 20/25 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Jul 27, 2021
  165. 21/25 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Jul 27, 2021
  166. 22/25 t7700: update to work with MIDX bitmap test knobTaylor Blau, Jul 27, 2021
  167. 23/25 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Jul 27, 2021
  168. Jeff KingAug 12, 2021
  169. 24/25 p5310: extract full and partial bitmap testsTaylor Blau, Jul 27, 2021
  170. 25/25 p5326: perf tests for MIDX bitmapsTaylor Blau, Jul 27, 2021
  171. Jeff KingAug 12, 2021
  172. Jeff KingAug 12, 2021
  173. Taylor BlauAug 12, 2021
  174. 00/25 multi-pack reachability bitmapsTaylor Blau, Aug 24, 2021
  175. 01/25 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Aug 24, 2021
  176. 02/25 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Aug 24, 2021
  177. 03/25 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Aug 24, 2021
  178. 04/25 Documentation: describe MIDX-based bitmapsTaylor Blau, Aug 24, 2021
  179. 05/25 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Aug 24, 2021
  180. Junio C HamanoAug 24, 2021
  181. Taylor BlauAug 24, 2021
  182. Junio C HamanoAug 24, 2021
  183. Taylor BlauAug 24, 2021
  184. Taylor BlauAug 24, 2021
  185. Junio C HamanoAug 24, 2021
  186. Junio C HamanoAug 24, 2021
  187. Taylor BlauAug 24, 2021
  188. Junio C HamanoAug 27, 2021
  189. Taylor BlauAug 27, 2021
  190. Junio C HamanoAug 29, 2021
  191. Taylor BlauAug 30, 2021
  192. Junio C HamanoAug 30, 2021
  193. Taylor BlauAug 30, 2021
  194. brian m. carlsonAug 30, 2021
  195. Junio C HamanoAug 30, 2021
  196. Taylor BlauAug 30, 2021
  197. Jeff KingAug 31, 2021
  198. Junio C HamanoAug 31, 2021
  199. Taylor BlauAug 31, 2021
  200. Junio C HamanoAug 31, 2021
  201. Taylor BlauAug 31, 2021
  202. Derrick StoleeAug 31, 2021
  203. Jeff KingAug 31, 2021
  204. Junio C HamanoAug 31, 2021
  205. Taylor BlauAug 31, 2021
  206. Derrick StoleeAug 31, 2021
  207. Jeff KingSep 1, 2021
  208. 06/25 midx: reject empty `--preferred-pack`'sTaylor Blau, Aug 24, 2021
  209. 07/25 midx: infer preferred pack when not given oneTaylor Blau, Aug 24, 2021
  210. 08/25 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Aug 24, 2021
  211. 09/25 midx: avoid opening multiple MIDXs when writingTaylor Blau, Aug 24, 2021
  212. 10/25 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Aug 24, 2021
  213. 11/25 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Aug 24, 2021
  214. 12/25 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Aug 24, 2021
  215. 13/25 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Aug 24, 2021
  216. 14/25 pack-bitmap: read multi-pack bitmapsTaylor Blau, Aug 24, 2021
  217. 15/25 pack-bitmap: write multi-pack bitmapsTaylor Blau, Aug 24, 2021
  218. 16/25 t5310: move some tests to lib-bitmap.shTaylor Blau, Aug 24, 2021
  219. 17/25 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Aug 24, 2021
  220. 19/25 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 24, 2021
  221. 20/25 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 24, 2021
  222. 18/25 t5326: test multi-pack bitmap behaviorTaylor Blau, Aug 24, 2021
  223. 21/25 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Aug 24, 2021
  224. 23/25 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Aug 24, 2021
  225. 25/25 p5326: perf tests for MIDX bitmapsTaylor Blau, Aug 24, 2021
  226. 24/25 p5310: extract full and partial bitmap testsTaylor Blau, Aug 24, 2021
  227. 22/25 t7700: update to work with MIDX bitmap test knobTaylor Blau, Aug 24, 2021
  228. Jeff KingAug 25, 2021
  229. Taylor BlauAug 25, 2021
  230. Taylor BlauAug 25, 2021
  231. Jeff KingAug 25, 2021
  232. Johannes BergAug 25, 2021
  233. Taylor BlauAug 26, 2021
  234. Taylor BlauAug 26, 2021
  235. Jeff KingAug 27, 2021
  236. Junio C HamanoAug 29, 2021
  237. 00/27 multi-pack reachability bitmapsTaylor Blau, Aug 31, 2021
  238. 01/27 pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmapsTaylor Blau, Aug 31, 2021
  239. 02/27 pack-bitmap-write.c: gracefully fail to write non-closed bitmapsTaylor Blau, Aug 31, 2021
  240. 03/27 pack-bitmap-write.c: free existing bitmapsTaylor Blau, Aug 31, 2021
  241. 04/27 Documentation: describe MIDX-based bitmapsTaylor Blau, Aug 31, 2021
  242. 05/27 midx: disallow running outside of a repositoryTaylor Blau, Aug 31, 2021
  243. 06/27 midx: fix `*.rev` cleanups with `--object-dir`Taylor Blau, Aug 31, 2021
  244. 07/27 midx: clear auxiliary .rev after replacing the MIDXTaylor Blau, Aug 31, 2021
  245. 09/27 midx: infer preferred pack when not given oneTaylor Blau, Aug 31, 2021
  246. 08/27 midx: reject empty `--preferred-pack`'sTaylor Blau, Aug 31, 2021
  247. 10/27 midx: close linked MIDXs, avoid leaking memoryTaylor Blau, Aug 31, 2021
  248. 11/27 midx: avoid opening multiple MIDXs when writingTaylor Blau, Aug 31, 2021
  249. 12/27 pack-bitmap.c: introduce 'bitmap_num_objects()'Taylor Blau, Aug 31, 2021
  250. 13/27 pack-bitmap.c: introduce 'nth_bitmap_object_oid()'Taylor Blau, Aug 31, 2021
  251. 14/27 pack-bitmap.c: introduce 'bitmap_is_preferred_refname()'Taylor Blau, Aug 31, 2021
  252. 16/27 pack-bitmap: read multi-pack bitmapsTaylor Blau, Aug 31, 2021
  253. 15/27 pack-bitmap.c: avoid redundant calls to try_partial_reuseTaylor Blau, Aug 31, 2021
  254. 17/27 pack-bitmap: write multi-pack bitmapsTaylor Blau, Aug 31, 2021
  255. 18/27 t5310: move some tests to lib-bitmap.shTaylor Blau, Aug 31, 2021
  256. 19/27 t/helper/test-read-midx.c: add --checksum modeTaylor Blau, Aug 31, 2021
  257. 20/27 t5326: test multi-pack bitmap behaviorTaylor Blau, Aug 31, 2021
  258. 22/27 t5310: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 31, 2021
  259. 21/27 t0410: disable GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAPTaylor Blau, Aug 31, 2021
  260. 23/27 t5319: don't write MIDX bitmaps in t5319Taylor Blau, Aug 31, 2021
  261. 24/27 t7700: update to work with MIDX bitmap test knobTaylor Blau, Aug 31, 2021
  262. 25/27 midx: respect 'GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP'Taylor Blau, Aug 31, 2021
  263. 26/27 p5310: extract full and partial bitmap testsTaylor Blau, Aug 31, 2021
  264. 27/27 p5326: perf tests for MIDX bitmapsTaylor Blau, Aug 31, 2021
  265. Junio C HamanoSep 1, 2021
  266. Taylor BlauSep 1, 2021
  267. Junio C HamanoSep 1, 2021
  268. Taylor BlauSep 1, 2021
  269. Junio C HamanoSep 1, 2021
  270. Taylor BlauSep 1, 2021
  271. Jeff KingSep 2, 2021
  272. Jeff KingSep 2, 2021
  273. Jeff KingSep 2, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.