ipld / js-ipld-git

MIT License
34 stars 11 forks source link

where are git rename/add/delete/edit history object? #69

Open bluelovers opened 4 years ago

bluelovers commented 4 years ago

where are git rename/add/delete/edit history object?

i didn't see demo and code has any about it

vmx commented 4 years ago

I'm not sure if I understand your question. This codec operates on raw Git objects. The test fixtures contain objects of the types blob, commit, tag and tree, which seem to be all types that Git supports.

What are you missing? Can you give examples of such Git objects?

bluelovers commented 4 years ago

tree only record file list tag is just tag info commit didn't has file info

so where is file change record ( rename , delete, add, edit )?

vmx commented 4 years ago

AFAIK, those things are not stored in Git, they are calculated. For more information about renames, https://chelseatroy.com/2020/05/09/question-how-does-git-detect-renames/ is a good read. And for Git internals I recommend the "Git Internals" chapter from the Git book