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

Git internals : packfile and packfile index #323

Open
1 of 2 tasks
Maxzor opened this issue Sep 18, 2020 · 2 comments
Open
1 of 2 tasks

Git internals : packfile and packfile index #323

Maxzor opened this issue Sep 18, 2020 · 2 comments

Comments

@Maxzor
Copy link

Maxzor commented Sep 18, 2020

Trying to get for now those KSY up :

  • git packfile - .git/objects/pack/*.pack
  • git packfile index - .git/objects/pack/*.idx

Will maybe tackle multi-index later.

Docs :

Thank to the help of @generalmimon on gitter.im , a packfile index KSY is working, see below :

@Maxzor

This comment has been minimized.

@Maxzor
Copy link
Author

Maxzor commented Sep 18, 2020

Packfile is harder :

@generalmimon The git packfile is miles harder than the git packindex. Packfile is not self-sufficient for deserialization, needs either zlib, or its sibling index file :< kaitai-io/kaitai_compress#6

AFAIU my options are :

  • find a magic byte at the end of the zlib stream
  • process: zlib.inflate with the linked-above WIP project
  • parse simultaneously in ide.kaitai.io/devel two files
  • recode c git internals to not have two files to do the job of one file
  • do nothing

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