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

the 'tree' commit hash string seems incorrect #2376

Closed
Shane-XB-Qian opened this issue Feb 5, 2025 · 2 comments
Closed

the 'tree' commit hash string seems incorrect #2376

Shane-XB-Qian opened this issue Feb 5, 2025 · 2 comments

Comments

@Shane-XB-Qian
Copy link

Image

the 'tree' hash string is like above,

but the bufname is fugitive:///home/foo/bar/.git//ce47d32b03bb7df0100b2625ef68fad1eb4646e3
what is this 'tree' meaning here?
was it incorrect, or whatever should add correct hash string:
commit ce47d32b03bb7df0100b2625ef68fad1eb4646e3
?

@tpope
Copy link
Owner

tpope commented Feb 5, 2025

See man gitglossary. The tree is a data structure representing the directory hierarchy. The commit contains the tree, as well as a commit message. You don't need to care about the tree. The reason it's there is that the buffer is modeled after Git's internal structure (see git cat-file commit HEAD). In the next redesign I will get rid of it, but don't hold your breath.

@tpope tpope closed this as completed Feb 5, 2025
@Shane-XB-Qian
Copy link
Author

Shane-XB-Qian commented Feb 5, 2025 via email

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

2 participants