Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

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

Open
bluelovers opened this issue Jul 29, 2020 · 3 comments
Open

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

bluelovers opened this issue Jul 29, 2020 · 3 comments

Comments

@bluelovers
Copy link

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

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

@vmx
Copy link
Member

vmx commented Jul 29, 2020

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
Copy link
Author

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
Copy link
Member

vmx commented Jul 29, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants