[PATCH 1/1] RFC: git: update to v2.98.0-rc0

Christian Hesse list at eworm.de
Wed Dec 2 10:20:21 UTC 2026


From: Christian Hesse <mail at eworm.de>

Update to git version v2.98.0-rc0, this requires changes for these
upstream commits:

* a28d2bfe19586dd1dd066c30f93581b48bbdcbc8
  xdiff: replace mmbuffer_t with mmfile_t

* cbfd4cb86f78054a0b824b86f058240c162612e0
  odb/source-files: move alternates into the backend

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 Makefile   | 4 ++--
 git        | 2 +-
 shared.c   | 2 +-
 ui-clone.c | 8 ++++----
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index 2a18585..ebc6f0f 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,8 @@ htmldir = $(docdir)
 pdfdir = $(docdir)
 mandir = $(prefix)/share/man
 SHA1_HEADER = <openssl/sha.h>
-GIT_VER = 2.56.1
-GIT_URL = https://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.xz
+GIT_VER = v2.98.0.rc0
+GIT_URL = https://www.kernel.org/pub/software/scm/git/testing/git-$(GIT_VER).tar.xz
 INSTALL = install
 COPYTREE = cp -r
 MAN5_TXT = $(wildcard *.5.txt)
diff --git a/git b/git
index 03b4152..566b699 160000
--- a/git
+++ b/git
@@ -1 +1 @@
-Subproject commit 03b41523c576f26ad34085378717a0c1b287470f
+Subproject commit 566b6997dd4710b625c0882cf10a7443bf52d183
diff --git a/shared.c b/shared.c
index a39394d..75655ee 100644
--- a/shared.c
+++ b/shared.c
@@ -261,7 +261,7 @@ static int load_mmfile(mmfile_t *file, const struct object_id *oid)
 static char *diffbuf = NULL;
 static int buflen = 0;
 
-static int filediff_cb(void *priv, mmbuffer_t *mb, int nbuf)
+static int filediff_cb(void *priv, mmfile_t *mb, int nbuf)
 {
 	int i;
 
diff --git a/ui-clone.c b/ui-clone.c
index e11f496..9a76853 100644
--- a/ui-clone.c
+++ b/ui-clone.c
@@ -33,17 +33,17 @@ static int print_ref_info(const struct reference *ref, void *cb_data)
 
 static void print_pack_info(void)
 {
-	struct odb_source *source;
+	struct odb_source_files *files;
 	char *offset;
 
 	ctx.page.mimetype = "text/plain";
 	ctx.page.filename = "objects/info/packs";
 	cgit_print_http_headers();
 	odb_reprepare(the_repository->objects);
-	for (source = the_repository->objects->sources; source; source = source->next) {
-		struct odb_source_files *files = odb_source_files_downcast(source);
+	files = odb_source_files_downcast(the_repository->objects->source);
+	for (struct odb_files_dir *dir = files->dirs->next; dir; dir = dir->next) {
 		struct packfile_list_entry *e;
-		for (e = files->packed->packs.head; e; e = e->next) {
+		for (e = dir->packed->packs.head; e; e = e->next) {
 			struct packed_git *p = e->pack;
 			if (p->pack_local) {
 				offset = strrchr(p->pack_name, '/');


More information about the CGit mailing list