Skip to content

feat: Add GitObjectLayout strategy#11

Merged
rickhohler merged 1 commit intomainfrom
feature/git-style-layout
Dec 20, 2025
Merged

feat: Add GitObjectLayout strategy#11
rickhohler merged 1 commit intomainfrom
feature/git-style-layout

Conversation

@rickhohler
Copy link
Collaborator

Description

Implements the Git-style directory layout strategy for content-addressable storage. This allows hashes to be split into a prefix directory and remainder filename (e.g., a1/b2c3d4...).

Changes

  • Added GitObjectLayout struct in DesignAlgorithmsKit/Algorithms/Storage
  • Added unit tests in GitObjectLayoutTests
  • Cleaned up redundant public modifier in HashAlgorithmProtocol

Verification

  • Run swift test --filter GitObjectLayoutTests to verify.

- Implements GitObjectLayout for generating git-style directory paths from hashes
- Adds unit tests for layout generation
- Fixes redundant public modifier warning in HashAlgorithmProtocol
@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...Kit/Algorithms/Hashing/HashAlgorithmProtocol.swift 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rickhohler rickhohler merged commit 60623fd into main Dec 20, 2025
2 checks passed
@rickhohler rickhohler deleted the feature/git-style-layout branch December 20, 2025 23:14
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