js-ipld-git icon indicating copy to clipboard operation
js-ipld-git copied to clipboard

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

Open bluelovers opened this issue 5 years ago • 3 comments

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

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

bluelovers avatar Jul 29 '20 01:07 bluelovers

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?

vmx avatar Jul 29 '20 10:07 vmx

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 )?

bluelovers avatar Jul 29 '20 10:07 bluelovers

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

vmx avatar Jul 29 '20 12:07 vmx