Skip to content

Conversation

@pjbgf
Copy link
Member

@pjbgf pjbgf commented Sep 24, 2025

This PR introduces the support for SHA256 Init operations for memory.Storage. Follow-up PRs will introduce support for Open, Clone and other operations (and storage options).

Relates to #706.

@pjbgf pjbgf requested a review from aymanbagabas September 24, 2025 08:26
@pjbgf pjbgf marked this pull request as ready for review September 24, 2025 09:11
@pjbgf pjbgf force-pushed the sha256-init branch 2 times, most recently from 8be885c to c9b1f1d Compare September 24, 2025 09:57
pjbgf added 6 commits October 27, 2025 19:16
Instead of returning nil for unsupported formats, defaults to SHA1. The
validation for invalid object format is likely better suited around the
Config logic.

Signed-off-by: Paulo Gomes <[email protected]>
Signed-off-by: Paulo Gomes <[email protected]>
This is a stepping stone for enabling SHA256 in memory storage.

Signed-off-by: Paulo Gomes <[email protected]>
Presently the repository_tests has over 3k lines of code. As new
tests are created to support SHA256, the existing tests should be
reviewed and improved.

The new TestInit is table driven and uses a new forEachFormat
helper function, to make it easier to extend tests to SHA256
repositories.

Signed-off-by: Paulo Gomes <[email protected]>
@pjbgf pjbgf merged commit 2c5c032 into go-git:main Oct 27, 2025
14 checks passed
@pjbgf pjbgf deleted the sha256-init branch October 27, 2025 19:27
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.

1 participant