Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 2: Implementing Object Storage #3

Open
vk17-starlord opened this issue Nov 20, 2024 · 0 comments
Open

Issue 2: Implementing Object Storage #3

vk17-starlord opened this issue Nov 20, 2024 · 0 comments

Comments

@vk17-starlord
Copy link
Owner

Description:
Build the core object storage system to handle Git objects (blobs, trees, and commits). This issue focuses on storing and retrieving data in a content-addressable format.

Goal Commands:

  • No user-facing commands yet; internal functions for object storage.

Tasks:

  1. Create blob objects:
    • Read file contents.
    • Compress the content using zlib.
    • Generate a SHA-1 hash for the object.
    • Write the object to the appropriate path in objects/.
  2. Implement functions to retrieve stored objects by their SHA-1 hash.

Expected Outcome:

  • Blob objects can be created and retrieved from the objects/ directory.
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

No branches or pull requests

1 participant