Skip to content

Conversation

@pjbgf
Copy link
Member

@pjbgf pjbgf commented Dec 2, 2025

Go-git has recently introduced support for reverse indexes, both for encoding and decoding. In order to expand on tests and start relying on the reverse indexes, we need to have git-generated .rev files so that we can better test go-git.

All these files were generated using:

git index-pack --rev-index -v <packfile>

This is part of a openSUSE Hack Week 25 project.

Go-git has recently introduced support for reverse indexes, both for
encoding and decoding. In order to expand on tests and start relying
on the reverse indexes, we need to have git-generated .rev files so
that we can better test go-git.

All these files were generated using:
git index-pack --rev-index -v <packfile>

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Add new tests to verify the idx and rev files. Note that two files are being ignored,
one is for a sha256 repository, which unfortunately the upstream git does not seem to
support.

The second ignored pack file does not have an idxfile, hence it makes no sense to verify
it nor to generate a rev file for that pack file.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
@pjbgf pjbgf merged commit ff9d2c5 into go-git:main Dec 2, 2025
9 checks passed
@pjbgf pjbgf deleted the rev branch December 2, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants